@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-gradient-start: #EEF2FF;
    --bg-gradient-end: #E0E7FF;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: rgba(255, 255, 255, 0.5);
    --success: #10B981;
    --error: #EF4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.card-large {
    max-width: 900px;
}

/* Header & Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
    text-align: center;
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #F9FAFB;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFF;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #CBD5E1;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: #EFF6FF;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--primary);
}

/* Data Table */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #E5E7EB;
}

th {
    background: #F9FAFB;
    font-weight: 600;
    color: var(--text-muted);
}

tr:hover {
    background: #F9FAFB;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #FEF2F2;
    color: var(--error);
    border: 1px solid #FCA5A5;
}

.alert-success {
    background: #ECFDF5;
    color: var(--success);
    border: 1px solid #6EE7B7;
}

/* Layout utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}
