:root {
    /* Universal Color Palette - Dark Violet Theme */
    --primary-color: #8b5cf6; /* Bright Violet for accents */
    --primary-gradient: linear-gradient(135deg, #3d1a52, #570a57); /* Dark Violet Gradient */
    --primary-hover: #a78bfa;
    --secondary-color: #a78bfa;
    --success-color: #34d399;
    --info-color: #06b6d4;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --light-color: #2a1445;
    --dark-color: #1a0f2e;
    
    --body-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    
    --sidebar-bg: linear-gradient(135deg, #3d1a52, #570a57);
    --sidebar-text: #ffffff;
    --sidebar-active: rgba(139, 92, 246, 0.2);
    --sidebar-hover: rgba(139, 92, 246, 0.15);
    
    --navbar-bg: linear-gradient(135deg, #3d1a52, #570a57);
    --navbar-text: #ffffff;
    
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* Global Resets & Typography */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text-color);
    font-size: 0.75rem; /* Reduced font size */
    line-height: 1.6; /* More spacing */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-hover);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 0.2rem; /* Reduced spacing */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    box-shadow: var(--box-shadow);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem 0.75rem; /* More spacing */
}

/* Buttons - Professional Design */
.btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #570a57, #3d1a52);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(87, 10, 87, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #4e555b);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(23, 162, 184, 0.4);
}

.btn-outline-violet {
    color: #000000;
    border: 1px solid #0d011a;
    background-color: transparent;
    box-shadow: none;
}

.btn-outline-violet:hover {
    color: #ffffff;
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 6px 12px rgba(87, 10, 87, 0.4);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 5px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 8px;
}

.btn i {
    margin-right: 6px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Inputs */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 0.3rem 0.4rem; /* Reduced spacing */
    font-size: 0.75rem; /* Reduced font size */
    background-color: #ffffff;
    color: #333333;
}

.form-control:focus, .form-select:focus {
    border-color: #570a57;
    box-shadow: 0 0 0 0.25rem rgba(87, 10, 87, 0.25);
    background-color: #ffffff;
    color: #333333;
    outline: none;
}

/* Floating Labels / Input Outline */
.input-outline {
    position: relative;
    margin-bottom: 0.5rem; /* Reduced spacing */
}

.input-outline input {
    width: 100%;
    padding: 5px; /* Reduced spacing */
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    outline: none;
    background: transparent;
    transition: border-color var(--transition-speed);
}

.input-outline input:focus {
    border-color: #570a57;
    box-shadow: 0 0 0 0.25rem rgba(87, 10, 87, 0.25);
    outline: none;
}

.input-outline label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background-color: var(--card-bg);
    padding: 0 5px;
    color: var(--text-muted);
    font-size: 0.75rem; /* Reduced font size */
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-outline input:focus + label,
.input-outline input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    color: #570a57;
    font-weight: 600;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem; /* More spacing */
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 0;
    white-space: nowrap; /* Prevent text wrapping to keep columns aligned */
}

.table thead {
    background: linear-gradient(135deg, #3d1a52, #570a57); /* Dark Violet Gradient */
}

.table thead th {
    background: transparent;
    color: #ffffff;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem; /* Reduced font size */
    padding: 8px; /* Reduced padding */
    letter-spacing: 1px;
}

@media print {
    .table thead th {
        background-color: transparent !important;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    body {
        background-color: #fff;
        color: #000;
    }
    
    .no-print {
        display: none !important;
    }
    
    /* Ensure table borders are visible in print */
    .table-bordered th,
    .table-bordered td {
        border: 1px solid #000 !important;
    }
}

.table tbody td {
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    padding: 6px 10px; /* Reduced spacing */
    font-size: 0.75rem; /* Reduced font size */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(111, 66, 193, 0.05);
}

/* Navbar */
.custom-navbar {
    background: var(--navbar-bg);
    box-shadow: none;
    padding: 0.5rem 1rem;
    z-index: 1030;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    margin: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navbar-text) !important;
}

/* Navbar Mobile Responsive */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-username {
        padding: 0 0.3rem !important;
        font-size: 0.9rem;
        margin-right: 0.25rem;
        display: inline-flex;
        align-items: center;
    }
    
    .username-text {
        display: none;
    }
    
    .navbar-logout-btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .logout-text {
        display: none;
    }
    
    .navbar-user-section {
        gap: 0.5rem;
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
    
    .custom-navbar .container-fluid {
        gap: 0.25rem;
    }
    
    .sidebar-toggle {
        flex-shrink: 0;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .navbar-username {
        padding: 0 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .navbar-logout-btn {
        padding: 0.375rem 1rem !important;
    }
}

@media (min-width: 769px) {
    .navbar-username {
        padding: 0 1rem !important;
    }
    
    .navbar-logout-btn {
        padding: 0.375rem 1.25rem !important;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
    z-index: 1025;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    padding-top: 60px;
}

.sidebar.hidden {
    transform: translateX(-260px);
}

.sidebar-toggle {
    font-size: 1rem;
    border: none;
    background: transparent;
    color: var(--navbar-text);
    padding: 0;
    margin-right: 1rem;
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1020;
}

.sidebar-overlay.show {
    display: block;
}

/* Body padding adjustment for sidebar - Mobile First */
body:not(.login-body) {
    padding-top: 60px !important; /* Match navbar height */
    padding-left: 0 !important; /* Mobile first - no sidebar space */
    transition: padding-left var(--transition-speed);
}

/* Desktop only: Add sidebar padding */
@media (min-width: 769px) {
    body:not(.login-body) {
        padding-left: 260px !important;
    }
    
    body:not(.login-body).sidebar-hidden {
        padding-left: 0 !important;
    }
}

/* Mobile: Ensure sidebar is hidden and no padding */
.sidebar {
    transform: translateX(-260px);
}

@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    background-color: rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-item {
    color: var(--sidebar-text);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-item:hover, .sidebar-item.active {
    background-color: var(--sidebar-hover);
    color: #fff;
    border-left-color: var(--primary-color);
    text-decoration: none;
}

.sidebar-item i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

.sidebar-submenu {
    background-color: rgba(0,0,0,0.1);
}

.sidebar-subitem {
    padding: 0.6rem 1.5rem 0.6rem 3.5rem;
    color: rgba(255,255,255,0.7);
    display: block;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.sidebar-subitem:hover, .sidebar-subitem.active {
    color: #fff;
    text-decoration: none;
    background-color: rgba(255,255,255,0.05);
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background: var(--primary-gradient) !important; }

.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* ============================================
   MODERN LOGIN PAGE DESIGN
   ============================================ */

/* Login Body - Base Styles */
.login-body {
    background: #5d419f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* Animated Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #ff6ec4;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #7873f5;
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #a8edea;
    top: 40%;
    right: 5%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Login Wrapper */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    flex: 1;
    min-height: calc(100vh - 120px);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: #fff;
}

.brand-section {
    margin-bottom: 30px;
    text-align: center;
}

.brand-icon {
    width: 70px;
    height: 70px;
    background: #57435d;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    animation: pulse 3s infinite;
}

.brand-icon i {
    font-size: 2rem;
    color: #fff;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 70px rgba(102, 126, 234, 0.6);
    }
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 2px;
    background: #FEFACD;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1s ease-out;
}

.brand-tagline {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
    animation: slideInLeft 1.2s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 0.9;
        transform: translateX(0);
    }
}

/* Features Showcase */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(102, 126, 234, 0.5);
}

.showcase-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.showcase-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.showcase-text h4 {
    margin: 0 0 3px 0;
    font-size: 1rem;
    font-weight: 700;
}

.showcase-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Login Section */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-modern {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header-modern {
    text-align: center;
    margin-bottom: 25px;
}

.card-header-modern h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.card-header-modern p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Modern Form Styles */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-label i {
    color: #667eea;
}

.modern-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: #999;
}

/* Modern Alerts */
.alert-modern {
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    border: 2px solid #ff6b6b;
    color: #c92a2a;
}

.alert-error i {
    color: #ff6b6b;
    margin-top: 2px;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #f59e0b;
    color: #92400e;
}

.alert-warning i {
    color: #f59e0b;
    margin-top: 2px;
}

.alert-warning strong {
    display: block;
    margin-bottom: 5px;
}

.alert-warning p {
    margin: 0;
    font-size: 0.9rem;
}

/* Modern Button */
.btn-modern {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.btn-primary-modern {
    background: #5F4A8B;
    color: #FEFACD;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.btn-primary-modern:active {
    transform: translateY(-1px);
}

/* Card Footer */
.card-footer-modern {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.card-footer-modern p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.card-footer-modern i {
    color: #667eea;
    margin-right: 5px;
}

/* Features Bottom Section */
.features-bottom {
    display: none;
}

@media (max-width: 1024px) {
    .features-bottom {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 1400px;
        margin: 20px auto;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .features-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 15px;
        margin: 15px auto;
    }
}

.feature-card-modern {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon-modern {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon-modern i {
    font-size: 2rem;
    color: #fff;
}

.feature-card-modern h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.feature-card-modern p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.feature-card-modern {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon-modern {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon-modern i {
    font-size: 2rem;
    color: #fff;
}

.feature-card-modern h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.feature-card-modern p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Modern Footer */
.modern-footer {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FEFACD;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-brand i {
    font-size: 1.1rem;
    color: #FEFACD;
}

.footer-contacts {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: #FEFACD;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.footer-link i {
    font-size: 1rem;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
        height: auto;
        min-height: auto;
    }
    
    .login-body {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-section {
        order: 1;
    }
    
    .login-section {
        order: 2;
    }
    
    .brand-title {
        font-size: 3rem;
    }
    
    .features-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .login-body {
        height: auto;
        min-height: 100vh;
    }
    
    .login-wrapper {
        padding: 20px 15px;
        gap: 30px;
        height: auto;
        min-height: auto;
    }
    
    .brand-icon {
        width: 80px;
        height: 80px;
    }
    
    .brand-icon i {
        font-size: 2.5rem;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .brand-tagline {
        font-size: 1.1rem;
    }
    
    .features-showcase {
        gap: 15px;
    }
    
    .showcase-item {
        padding: 15px;
    }
    
    .showcase-icon {
        width: 50px;
        height: 50px;
    }
    
    .showcase-icon i {
        font-size: 1.2rem;
    }
    
    .showcase-text h4 {
        font-size: 1rem;
    }
    
    .showcase-text p {
        font-size: 0.85rem;
    }
    
    .login-card-modern {
        padding: 35px 25px;
    }
    
    .card-header-modern h2 {
        font-size: 1.7rem;
    }
    
    .feature-card-modern {
        padding: 20px;
    }
    
    .feature-icon-modern {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .feature-icon-modern i {
        font-size: 1.5rem;
    }
    
    .feature-card-modern h3 {
        font-size: 1rem;
    }
    
    .feature-card-modern p {
        font-size: 0.85rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contacts {
        justify-content: center;
    }
}
    }
    
    .login-wrapper {
        padding: 20px 15px;
        gap: 30px;
        height: auto;
        min-height: auto;
    }
    
    .brand-icon {
        width: 80px;
        height: 80px;
    }
    
    .brand-icon i {
        font-size: 2.5rem;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .brand-tagline {
        font-size: 1.1rem;
    }
    
    .features-showcase {
        gap: 15px;
    }
    
    .showcase-item {
        padding: 15px;
    }
    
    .showcase-icon {
        width: 50px;
        height: 50px;
    }
    
    .showcase-icon i {
        font-size: 1.2rem;
    }
    
    .showcase-text h4 {
        font-size: 1rem;
    }
    
    .showcase-text p {
        font-size: 0.85rem;
    }
    
    .login-card-modern {
        padding: 35px 25px;
    }
    
    .card-header-modern h2 {
        font-size: 1.7rem;
    }
    
    .features-bottom {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contacts {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .brand-tagline {
        font-size: 1rem;
    }
    
    .login-card-modern {
        padding: 30px 20px;
    }
    
    .card-header-modern h2 {
        font-size: 1.5rem;
    }
    
    .modern-input {
        padding: 12px 15px;
    }
    
    .btn-modern {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .footer-contacts {
        flex-direction: column;
        gap: 15px;
    }
}
    width: 100%;
}

.left-panel {
    width: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}

.left-content {
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInContent 1s ease forwards;
    width: 100%;
    max-width: 600px;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.brand-logo i {
    font-size: 2.5rem;
    color: #fff;
}

.left-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.login-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 0.5rem;
}

.left-content p {
    font-size: 1.1rem;
    margin-top: 12px;
}

.description-panel {
    width: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.description-panel .login-description {
    text-align: left;
    width: 100%;
    max-width: 600px;
}

.description-panel p {
    font-size: 1.1rem;
    margin-top: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.right-panel {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.4), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.login-card h3 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.login-card .form-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.login-card .form-control {
    border-radius: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn-custom {
    border-radius: 0.6rem;
    font-weight: 600;
    padding: 12px;
    transition: all 0.3s ease;
    background: #624b88 !important;
    border: none !important;
    color: white !important;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(161, 54, 171, 0.4);
    background: #624b88 !important;
}

@keyframes slideInContent {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.login-footer {
    position: absolute;
    bottom: 15px;
    width: 100%;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content p {
    margin: 0;
    color: #fff;
}

.footer-content p:first-child {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-info {
    font-size: 0.9rem;
    opacity: 0.95;
}

.contact-info span {
    color: #fff;
    margin: 0 0.5rem;
}

.contact-info .divider {
    opacity: 0.5;
}

.contact-info i {
    margin-right: 0.3rem;
}

.error-message {
    color: white;
    background: linear-gradient(135deg, #667eea, #a24b5e);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
}

.error-message:hover {
    background-color: #ff3333;
}

/* Hide description-panel on desktop (content is in left-panel) */
@media (min-width: 769px) {
    .description-panel {
        display: none;
    }
    
    .left-panel {
        width: 100%;
    }
    
    /* Show description in left-panel on desktop */
    .left-panel::after {
        content: '';
        display: block;
    }
}

/* Mobile Login */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 20px;
        display: flex;
    }
    
    .left-panel {
        width: 100%;
        padding: 0;
        order: 1;
    }
    
    .left-content {
        text-align: center;
    }
    
    .login-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .left-content h1 {
        font-size: 1.8rem;
    }
    
    .left-content p {
        font-size: 0.95rem;
        margin-top: 8px;
    }
    
    .right-panel {
        width: 100%;
        order: 2;
        padding: 0;
    }
    
    .login-card {
        padding: 25px;
        margin-bottom: 1rem;
    }
    
    .description-panel {
        width: 100%;
        order: 3;
        padding: 20px 0;
    }
    
    .login-description {
        text-align: center;
    }
    
    .login-description p {
        font-size: 0.95rem;
        margin-top: 8px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .feature-item {
        padding: 1.2rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .feature-item h3 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }
    
    .brand-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .brand-logo i {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .login-footer {
        position: relative;
        margin-top: 20px;
    }
}

/* Billing Page Specifics */
.red-text {
    color: var(--danger-color) !important;
}

/* Sticky Header for Tables */
thead.sticky-top th {
    position: sticky;
    top: 60px; /* Match navbar height */
    background: var(--primary-gradient); /* Use gradient for sticky header */
    color: #fff; /* Ensure text is white */
    z-index: 100;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Ensure dropdown is above everything */
.navbar .dropdown-menu {
    z-index: 1050;
}

/* Mobile Responsive Styles for Billing */
@media (max-width: 768px) {
    .card-body .row {
        margin-bottom: 10px;
    }
    
    /* Stack columns on mobile */
    .col-1, .col-2, .col-3, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
    }
    
    /* Make table horizontally scrollable */
    .m-2 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce font sizes */
    body {
        font-size: 10px;
    }
    
    .form-control, .form-select, .btn {
        font-size: 10px !important;
        padding: 3px !important; 
    }
    
    label {
        font-size: 10px;
    }
    
    /* Button adjustments */
    .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Table cell widths for mobile */
    thead th {
        font-size: 10px;
        padding: 5px !important;
    }
    
    tbody td {
        font-size: 10px;
        padding: 5px !important;
    }
    
    /* Adjust input fields */
    .input-outline input {
        padding: 3px 4px;
    }
    
    /* Make buttons full width on mobile */
    .btn-outline-violet {
        width: 100% !important;
    }
    
    /* Reduce gaps */
    .g-2 {
        gap: 0.5rem !important;
    }
}
