* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f7fc;
    color: #1e293b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1140px; margin: 2rem auto; padding: 0 1.25rem; }

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e2a44;
    color: #fff;
    padding: 0.9rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}
.nav .brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.nav a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.nav a.active {
    background: #2563eb;
    color: #fff;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Hero Section */
.hero { text-align: center; padding: 4.5rem 1rem 3.5rem; }
.hero h1 { font-size: 2.6rem; margin-bottom: 1rem; color: #0f172a; font-weight: 800; letter-spacing: -0.02em; }
.hero p { font-size: 1.15rem; color: #475569; max-width: 600px; margin: 0 auto 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    background: #2563eb;
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(37,99,235,0.25); }
.btn:active { transform: translateY(0); }
.btn-outline {
    background: #fff;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    box-shadow: none;
}
.btn-outline:hover { background: #eff6ff; color: #1d4ed8; }
.btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: #2563eb;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.15rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-sm:hover { background: #1d4ed8; }
.btn-sm.danger { background: #dc2626; }
.btn-sm.danger:hover { background: #b91c1c; }
.btn-sm.btn-outline { background: #fff; border-color: #cbd5e1; color: #334155; }
.btn-sm.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }

/* Cards & Forms */
.card {
    background: #fff;
    padding: 1.6rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    margin-top: 1.25rem;
}
label { display: block; margin-bottom: 0.9rem; font-weight: 500; font-size: 0.92rem; color: #334155; }
input, textarea, select {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    margin-top: 0.35rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea { resize: vertical; }

/* Alerts & Notifications */
.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 0.92rem;
    font-weight: 500;
}
.ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 0.92rem;
    font-weight: 500;
}
.alert {
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Stats Grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.stat {
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}
.stat:hover { transform: translateY(-2px); }
.stat span { display: block; color: #64748b; font-size: 0.88rem; font-weight: 500; }
.stat strong { font-size: 1.6rem; color: #0f172a; font-weight: 700; margin-top: 0.25rem; display: block; }

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    white-space: nowrap;
}
.table th, .table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
}
.table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e2e8f0;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #f8fafc; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-pending     { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-approved    { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-rejected    { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-in_progress { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-completed   { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-paid        { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.badge-cancelled   { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* User Avatars */
.user-avatar {
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}
.default-avatar-block {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
    user-select: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
    font-size: 0.88rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav { padding: 0.8rem 1rem; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.8rem;
    }
    .nav-links.show { display: flex; }
    .nav a { margin: 0.2rem 0; padding: 0.6rem 0.8rem; }
    .hero h1 { font-size: 2rem; }
    .stats { grid-template-columns: 1fr 1fr; }
    .container { margin: 1.2rem auto; }
}
