:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.05);
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #10b981;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    background: linear-gradient(to right, #1e293b, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-soft);
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background-color: #fff;
}

.file-input-wrapper {
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-input-wrapper:hover {
    border-color: var(--primary-color);
    background: var(--primary-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
    box-shadow: none;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

/* Admin Table */
.admin-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-error {
    background-color: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fee2e2;
}

.alert-success {
    background-color: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #dcfce7;
}

@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }

    .card {
        padding: 24px;
    }

    header h1 {
        font-size: 1.75rem;
    }
}

/* Rich File List Styles */
.file-list-container {
    margin-top: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    background: #fff;
    min-height: 50px;
}

.file-list-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.file-list-item:last-child {
    border-bottom: none;
}

.file-name {
    font-weight: 600;
    color: #1e293b;
    word-break: break-all;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.placeholder-text {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 16px 0;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Enhanced Grid for Form */
@media (min-width: 768px) {
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }

    .form-grid-full {
        grid-column: 1 / -1;
    }
}

.section-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    color: var(--primary-color);
    display: inline-block;
}