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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

.navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.navbar .nav-menu {
    position: absolute;
    right: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-right: 1rem;
}

.nav-brand .logo {
    height: 45px;
    width: auto;
}

.brand-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.user-info {
    color: rgba(255, 255, 255, 0.95);
    margin-right: 1rem;
    font-weight: 500;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.flash-messages {
    margin: 2rem 0;
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card .login-logo img {
    height: 70px;
    width: auto;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-delete {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-edit {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.demo-credentials h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.demo-credentials p {
    margin: 0.25rem 0;
}

.dashboard {
    padding: 2rem 0;
}

.dashboard h2 {
    margin-bottom: 2rem;
    color: #1e293b;
    font-weight: 700;
    font-size: 1.875rem;
}

.balance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.balance-section {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.balance-title {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.balance-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.balance-stat {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.balance-stat.highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
}

.balance-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.balance-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.balance-value.primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.section h3 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
    font-size: 1.25rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.025em;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-denied {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-admin {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.badge-employee {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-manager {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.empty-state {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.action-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hide-mobile {
    display: table-cell;
}

.action-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.request-container {
    padding: 2rem 0;
}

.request-container h2 {
    margin-bottom: 2rem;
    color: #1e293b;
    font-weight: 700;
    font-size: 1.875rem;
}

.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.days-display {
    margin: 1rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-dashboard {
    padding: 2rem 0;
}

.admin-dashboard h2 {
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 700;
    font-size: 1.875rem;
}

.subtitle {
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 500;
}

footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .navbar .nav-menu {
        position: static;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-brand {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

    .login-container {
        min-height: auto;
        padding: 1.5rem 0;
    }

    .login-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .login-card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 16px;
    }

    .balance-overview {
        grid-template-columns: 1fr;
    }
    
    .balance-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .balance-value {
        font-size: 1.5rem;
    }

    .requests-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.75rem;
        width: 100%;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }

    .table th:first-child,
    .table td:first-child {
        padding-left: 0.75rem;
    }

    .table th:last-child,
    .table td:last-child {
        padding-right: 0.75rem;
    }

    .hide-mobile {
        display: none !important;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .action-cell {
        flex-direction: column;
        gap: 0.4rem;
        align-items: stretch;
    }

    .action-cell form {
        width: 100%;
    }

    .btn-edit, .btn-delete {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        margin: 0;
        text-align: center;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.65rem;
    }

    .form-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
    }

    .btn-sm {
        width: auto;
    }

    .btn-edit, .btn-delete {
        width: auto;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .section {
        padding: 1.25rem;
    }

    .section h3 {
        font-size: 1.1rem;
    }

    .dashboard h2 {
        font-size: 1.5rem;
    }

    .admin-dashboard h2 {
        font-size: 1.5rem;
    }

    .request-container h2 {
        font-size: 1.5rem;
    }

    footer {
        padding: 1rem 0;
        font-size: 0.875rem;
    }
}
