/* ========================================
   LEEMIFY - MODERN UI STYLESHEET
   Updated: Feb 2026
   ======================================== */

:root {
    /* Modern Color Palette */
    --primary: #0F3460;
    --primary-dark: #0a1f3a;
    --accent: #FF6B35;
    --accent-light: #FFB347;
    --secondary: #00BCD4;
    --success: #10B981;
    /* Layout variables (keep :root free of layout or box-model declarations) */
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F3460 0%, #1e5a96 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', sans-serif;
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px -10px rgba(0, 0, 0, 0.15);

    /* Layout heights used for fixed header elements */
    --top-banner-height: 56px;
    --header-height: 80px;
    --sidebar-height: 80px;
    --footer-height: 72px;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #1e293b;
    --primary-dark: #0f172a;
    --accent: #FF6B35;
    --dark: #f1f5f9;
    --light: #0f172a;
    --gray: #cbd5e1;
    --gray-light: #334155;
}

/* ========================================
   Global & Typography
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    height: 100%;
    min-height: 100vh;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    /* Reserve space for fixed top elements so content doesn't scroll under them */
    padding-top: calc(var(--top-banner-height) + var(--header-height) + var(--sidebar-height));
    font-family: var(--font-primary);
    background-color: var(--light);
    color: var(--dark);
    transition: background-color 0.3s, color 0.3s;
}

#app {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.5px;
}

a {
    color: var(--secondary);
    transition: color var(--transition);
}

a:hover {
    color: var(--primary);
}

/* ========================================
   Sidebar
   ======================================== */

#app {
    display: block;
    width: 100%;
}

.sidebar {
    width: 100%;
    background: var(--gray-light);
    display: flex;
    flex-direction: row;
    align-items: center;
    position: fixed;
    top: calc(var(--top-banner-height) + var(--header-height));
    left: 0;
    right: 0;
    height: var(--sidebar-height);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    z-index: 9998;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
}

.logo {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    height: 50px;
    width: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--tertiary-bg);
}

.logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.nav {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    flex: 1;
}

.nav-link {
    cursor: pointer;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1.2rem;
    margin: 0;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(15, 52, 96, 0.05);
    color: var(--primary) !important;
    border-bottom-color: var(--accent);
}

.nav-link.active {
    background: rgba(15, 52, 96, 0.03);
    color: var(--primary) !important;
    font-weight: 600;
    border-bottom-color: var(--accent);
    box-shadow: 0 6px 14px rgba(255, 107, 53, 0.12);
}

/* Stronger, tab-like active style for horizontal nav (Home/Calculator/Employees/Settings) */
.nav .nav-link.active {
    background: var(--light);
    color: var(--primary) !important;
    border-bottom-color: var(--accent);
    box-shadow: 0 6px 18px rgba(15,52,96,0.06);
    border-radius: 8px 8px 0 0;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    /* remove negative margin which can shift layout on some browsers */
    margin-bottom: 0;
    transform: translateY(0);
}

/* Page header (used by Employees & Home) */
.page-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 8px 0;
}

.page-header h2 {
    color: var(--accent);
    font-size: 1.75rem;
    margin: 0;
}

.page-header p {
    color: var(--gray);
    margin: 0;
}

/* ========================================
   Top Banner
   ======================================== */

.top-banner {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    height: var(--top-banner-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0;
}

.banner-left {
    flex: 1;
}

.banner-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.social-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.social-links li a:hover {
    color: white;
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.info-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 6px;
}

.info-item:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-light);
}

.info-item i {
    font-size: 1rem;
}

.divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
}

/* ========================================
   Header
   ======================================== */

.header {
    height: 80px;
    background: linear-gradient(135deg, var(--light) 0%, #fafbfc 100%);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: var(--shadow-md);
    min-height: 80px;
    overflow: hidden;
    margin: 0;

    position: fixed;
    top: var(--top-banner-height);
    left: 0;
    right: 0;
    z-index: 9999;
}

.header-title {
    font-size: 1.5rem;
    font-family: var(--font-display);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Header brand (logo) */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

/* Make the brand image act like a nav item */
.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.brand-link:hover {
    background: rgba(15, 52, 96, 0.03);
    transform: translateY(-2px);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .brand-logo { height: 42px; }
}

@media (max-width: 480px) {
    .brand-logo { height: 36px; }
    .header { padding: 0 12px; }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-link {
    text-decoration: none;
    color: var(--dark);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-link:hover {
    background: var(--light);
    color: var(--accent);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gray-light);
    border: none;
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: var(--accent);
    color: white;
    transform: rotate(20deg);
}

.whatsapp-link {
    color: #25D366;
}

.whatsapp-link:hover {
    color: #1da851;
}

/* ========================================
   Content Area
   ======================================== */

.content {
    background: var(--light);
    overflow-y: auto;
    padding: 40px;
    padding-bottom: calc(var(--footer-height) + 40px);
    position: relative;
    z-index: 1;
    margin-top: calc(var(--top-banner-height) + var(--header-height) + var(--sidebar-height));
}

/* ========================================
   Page Sections
   ======================================== */

.page {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease-in-out;
}

.page.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 32px;
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--gray);
    font-size: 1rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3rem;
    font-family: var(--font-display);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.hero-description {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 24px;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border: 1px solid var(--success);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 32px;
    color: var(--success);
    font-weight: 500;
}

.security-badge i {
    font-size: 1.2rem;
}

/* ========================================
   Features Grid
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-text {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   Glass Morphism Effects
   ======================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 50px -10px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 99999;
}

.glass-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 99999;
}

/* Modal z-index override - must be higher than header (10000) and sidebar (9998) */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
}

.modal.show {
    z-index: 99999 !important;
}

/* ========================================
   Cards & Components
   ======================================== */

.card {
    border: none;
    border-radius: 16px;
    background: var(--light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header-custom {
    background: var(--gradient-primary);
    color: white;
    padding: 16px;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
}

.card-body-custom {
    padding: 16px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.btn-gradient {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-info {
    background: var(--secondary);
    color: white;
}

.btn-info:hover {
    background: #0891b2;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ========================================
   Forms & Inputs
   ======================================== */

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.modern-input,
.modern-select {
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    color: var(--dark);
    font-family: var(--font-primary);
}

.modern-input:focus,
.modern-select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modern-input::placeholder {
    color: var(--gray);
}

.form-control {
    border-radius: 10px;
    border: 2px solid var(--gray-light);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-select {
    border-radius: 10px;
    border: 2px solid var(--gray-light);
}

.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ========================================
   Tables
   ======================================== */

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: var(--gradient-primary);
    color: white;
}

.table thead th {
    border: none;
    padding: 16px;
    font-weight: 600;
}

.table tbody td {
    padding: 14px 16px;
    border-color: var(--gray-light);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0, 0, 0, 0.02);
}

/* ========================================
   Summary Grid
   ======================================== */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.summary-item {
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: var(--transition);
}

.summary-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.summary-item.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%);
    border-color: var(--accent);
}

.summary-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.summary-value.deduction {
    color: var(--accent);
}

.summary-value.success {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Action Bar
   ======================================== */

.action-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    margin-top: 40px;
}

.cta-section .btn-gradient {
    font-size: 1.1rem;
    padding: 16px 40px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: translateY(-4px);
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 48px 32px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-top: 64px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links li a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-contact {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    display: flex;
    align-items: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    margin-bottom: 24px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0;
}

/* ========================================
   Badges
   ======================================== */

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

/* ========================================
   Toast Notifications
   ======================================== */

.toast {
    background: white;
    border: 1px solid var(--gray-light);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.toast.error {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Loading & Spinner
   ======================================== */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-light);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .top-banner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        position: static;
        height: auto;
    }
    
    .banner-left,
    .banner-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .banner-right {
        justify-content: center;
    }
    
    .contact-info {
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .info-item span {
        display: none;
    }
    
    .info-item i {
        font-size: 0.9rem;
    }
    
    .divider {
        display: none;
    }
    
    #app {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        position: static;
        z-index: 900;
        border-bottom: 1px solid var(--border-color);
        border-right: none;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        overflow-x: auto;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 6px;
    }
    
    .nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        flex: 1;
    }
    
    .nav-link {
        flex: 0 1 auto;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: flex-start;
        flex-direction: row;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-link.active {
        border-bottom-color: var(--accent);
        border-left: none;
    }
    
    .content {
        padding: 24px;
        padding-bottom: 24px;
    }

    #app {
        display: block;
    }

    body {
        padding-top: 0;
    }
    
    .footer {
        bottom: auto;
        padding: 32px 16px;
        margin-top: 48px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-subtitle {
        font-size: 0.85rem;
    }
    
    .header {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 12px;
        position: static;
    }
    
    .header-title {
        font-size: 1.25rem;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .header-link {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-bar {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-bar .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ========================================
   Transitions & Animations
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   Tab Styling (Bootstrap Tabs)
   ======================================== */

.nav-tabs {
    border-bottom: 2px solid var(--gray-light);
    gap: 0;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
    background: none;
}

.tab-content {
    display: block;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

[data-theme="dark"] .nav-tabs {
    border-bottom-color: var(--gray-light);
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--gray);
}

[data-theme="dark"] .nav-tabs .nav-link:hover,
[data-theme="dark"] .nav-tabs .nav-link.active {
    color: var(--accent);
}

/* ========================================
   PDF Report Styles
   ======================================== */

.pdf-report {
    border: 1px solid var(--gray-light);
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.pdf-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    margin: -1rem -1rem 0 -1rem;
}

.pdf-header h5 {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.pdf-summary {
    padding: 1.5rem;
}

.pdf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.95rem;
}

.pdf-row.total-row {
    background-color: #f0f5ff;
    padding: 0.75rem 0;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.pdf-row.net-pay-row {
    background: linear-gradient(135deg, var(--success) 0%, var(--accent-light) 100%);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    margin: 0.5rem -1.5rem -1.5rem -1.5rem;
    font-size: 1.05rem;
}

.pdf-label {
    color: var(--dark);
    font-weight: 500;
    font-family: var(--font-primary);
}

.pdf-value {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-align: right;
}

.pdf-row.net-pay-row .pdf-value {
    color: white;
}

.pdf-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0;
}

.pdf-divider-thick {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 0;
}

.pdf-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

/* Dark mode adjustments */
[data-theme="dark"] .pdf-report {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-color: var(--gray-light);
}

[data-theme="dark"] .pdf-row {
    border-bottom-color: #334155;
}

[data-theme="dark"] .pdf-row.total-row {
    background-color: rgba(15, 52, 96, 0.2);
    border-bottom-color: #64748b;
}

[data-theme="dark"] .pdf-label {
    color: var(--dark);
}

[data-theme="dark"] .pdf-value {
    color: var(--accent);
}

/* ========================================
   PAYSLIP STYLES
   ======================================== */

.payslip-container {
    background-color: var(--light);
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 99999;
}

.payslip-document {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--gray-light);
    font-family: 'Courier New', monospace;
    color: var(--dark);
    line-height: 1.6;
}

[data-theme="dark"] .payslip-document {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.payslip-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1.5rem;
}

.payslip-company {
    margin-bottom: 1rem;
}

.payslip-company h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.payslip-field {
    margin-bottom: 0.5rem;
}

.payslip-input {
    border: 1px dashed var(--gray);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    width: 100%;
    background: rgba(207, 250, 254, 0.1);
    font-family: 'Courier New', monospace;
}

.payslip-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(207, 250, 254, 0.2);
}

[data-theme="dark"] .payslip-input {
    background: rgba(15, 52, 96, 0.2);
    border-color: #475569;
}

.payslip-title {
    text-align: center;
    margin: 1.5rem 0;
}

.payslip-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.payslip-period {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
}

.payslip-section {
    margin-bottom: 1.8rem;
}

.payslip-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.payslip-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.payslip-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.payslip-detail-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.payslip-input-field {
    border: 1px dashed var(--gray);
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    background: rgba(207, 250, 254, 0.1);
    font-family: 'Courier New', monospace;
}

.payslip-input-field:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(207, 250, 254, 0.2);
}

[data-theme="dark"] .payslip-input-field {
    background: rgba(15, 52, 96, 0.2);
    border-color: #475569;
    color: #e2e8f0;
}

.payslip-subsection {
    margin-bottom: 1.2rem;
}

.payslip-subsection-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--gray-light);
}

.payslip-line-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.payslip-line-label {
    font-weight: 500;
    color: var(--dark);
}

.payslip-line-value {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    font-family: 'Courier New', monospace;
}

.payslip-total-deductions {
    background-color: #f0f5ff;
    padding: 0.5rem 0.5rem;
    margin: 0.5rem -0.5rem;
    border-radius: 4px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}

[data-theme="dark"] .payslip-total-deductions {
    background-color: rgba(15, 52, 96, 0.2);
}

.payslip-divider {
    height: 1px;
    background-color: var(--gray-light);
    margin: 0.5rem 0;
}

.payslip-summary {
    background: linear-gradient(135deg, var(--success) 0%, var(--accent-light) 100%);
    padding: 1.2rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    text-align: center;
}

[data-theme="dark"] .payslip-summary {
    background: linear-gradient(135deg, #059669 0%, #fbbf24 100%);
}

.payslip-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payslip-summary-label {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payslip-summary-value {
    font-weight: 700;
    color: white;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
}

.payslip-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
}

.payslip-footer p {
    margin: 0.3rem 0;
}

.payslip-footer-note {
    font-style: italic;
    font-size: 0.75rem;
}

/* Print styles for payslip */
@media print {
    .payslip-container {
        padding: 0;
        max-height: none;
    }
    
    .payslip-document {
        border: none;
        padding: 2rem;
        page-break-after: always;
    }
    
    .modal-header,
    .modal-footer,
    .btn {
        display: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .sidebar,
    .header,
    .footer,
    .action-bar,
    .btn {
        display: none;
    }
    
    .content {
        padding: 0;
    }
}

