:root {
    --primary: #1a365d; /* Nav midnight blue */
    --primary-light: #2c5282;
    --accent: #d4af37; /* Metallic gold */
    --accent-hover: #b8860b;
    --bg-light: #f7fafc;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --error: #e53e3e;
    --success: #38a169;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Premium Typography */
h1, h2, h3 {
    color: var(--primary);
    font-weight: 700;
}

/* Container */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header img {
    max-width: 120px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2rem;
    letter-spacing: -0.025em;
}

.header p {
    color: var(--text-muted);
}

/* Cards & Forms */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 1.25rem;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #edf2f7;
    display: flex;
    align-items: center;
}

.section-title span {
    background: var(--accent);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.9rem;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* Custom Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    width: 100%;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Children List */
.children-list {
    margin-top: 10px;
}

.child-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Admin Dashboard Specific */
.admin-nav {
    background: var(--primary);
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

.admin-nav .container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    text-align: left;
    background: #f8fafc;
    padding: 12px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

td {
    padding: 16px 12px;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95rem;
}

tr:hover {
    background-color: #f7fafc;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success { background: #c6f6d5; color: #22543d; }
.badge-warning { background: #feebc8; color: #744210; }

/* Responsive */
@media (max-width: 600px) {
    .container { padding: 10px; margin: 20px auto; }
    .card { padding: 20px; }
    .grid { grid-template-columns: 1fr; }
}
