/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary, #f5f7fa);
    color: var(--text-primary, #333);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Arabic Font Support - LTR Layout */
body.arabic-text {
    font-family: 'Cairo', 'Amiri', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 400;
}

body.arabic-text h1, 
body.arabic-text h2, 
body.arabic-text h3, 
body.arabic-text h4, 
body.arabic-text h5, 
body.arabic-text h6 {
    font-family: 'Cairo', 'Amiri', sans-serif;
    font-weight: 600;
}

body.arabic-text .btn, 
body.arabic-text button,
body.arabic-text select {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
}

/* Ensure buttons always visible in Arabic mode */
body.arabic-text .header-buttons,
body.arabic-text .language-selector,
body.arabic-text .logout-btn {
    display: flex !important;
    visibility: visible !important;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Top Navigation Bar */
.top-navbar {
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    box-shadow: var(--shadow-large, 0 2px 10px rgba(0, 0, 0, 0.1));
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
}

/* Fallback for browsers that don't support sticky */
@supports not (position: sticky) {
    .top-navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .app-container {
        padding-top: 160px; /* Approximate height of navbar */
    }
}

/* Row 1: App Title Only (Centered) */
.navbar-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-title i {
    font-size: 28px;
    color: #fff;
}

.navbar-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Row 2: Description Area */
.navbar-description {
    padding: 10px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-description p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

/* Row 3: Navigation & Controls */
.navbar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

/* Mobile Control Icons (hidden on desktop) */
.mobile-control-icons {
    display: none;
    align-items: center;
    gap: 20px;
}

/* Desktop Control Icons at End of Menu */
.desktop-control-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.control-icon {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.control-icon i {
    font-size: 18px;
}

/* Language dropdown container */
.language-dropdown-container {
    position: relative;
}

/* Language dropdown styling */
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 120px;
    background: #667eea;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
}

.navbar-menu .nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 5px;
}

.navbar-menu .nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    background: transparent;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.navbar-menu .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.navbar-menu .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #fff;
}

.navbar-menu .nav-item i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.navbar-menu .nav-item span {
    font-size: 14px;
    font-weight: 500;
}


/* Mobile Navigation Menu */
.mobile-nav-menu {
    display: none;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list .nav-item {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-list .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-nav-list .nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}





/* Responsive Design */
@media (max-width: 768px) {
    .navbar-title {
        padding: 12px 20px;
    }

    .navbar-title h1 {
        font-size: 20px;
    }

    .navbar-description {
        padding: 8px 20px;
    }

    .navbar-description p {
        font-size: 14px;
    }

    .navbar-controls {
        justify-content: center;
        padding: 12px 20px;
    }

    /* Show mobile control icons */
    .mobile-control-icons {
        display: flex;
    }

    /* Hide desktop navigation and control icons */
    .navbar-menu {
        display: none;
    }

    .desktop-control-icons {
        display: none;
    }

    .main-content {
        padding: 20px;
    }
}


/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    min-height: calc(100vh - 200px);
    background: var(--bg-primary, #f5f7fa);
}

/* Page Styles */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Login Page - SIMPLE CENTERING */
#login {
    width: 100vw;
    height: 100vh;
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    display: table;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

#login.active {
    display: table;
}

#login > div {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 20px;
}

#login h1 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#login .form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

#login .form-group {
    margin-bottom: 20px;
}

#login .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

#login .form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

#login .form-group input:focus {
    border-color: #667eea;
    outline: none;
}

#login .form-actions {
    margin-top: 25px;
}

#login .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.page h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary, white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium, 0 4px 6px rgba(0, 0, 0, 0.07));
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s ease;
    transform: none !important;
    border: 1px solid var(--border-color, #e1e8ed);
}

.stat-card:hover {
    /* Very subtle shadow enhancement only - NO movement */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: none !important;
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    background-color: #f8f9fa;
}

.stat-icon {
    background: var(--stat-icon-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
}

.stat-content h3 {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--btn-primary-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--btn-primary-shadow-hover, 0 4px 12px rgba(102, 126, 234, 0.4));
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Table Styles */
.table-container {
    background: var(--bg-secondary, white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium, 0 4px 6px rgba(0, 0, 0, 0.07));
    overflow: hidden;
    border: 1px solid var(--border-color, #e1e8ed);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: var(--table-header-bg, #f8f9fa);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary, #495057);
    border-bottom: 2px solid var(--border-color, #dee2e6);
    position: relative;
}

.data-table th input[type="checkbox"] {
    margin-top: 5px;
    transform: scale(1.1);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--table-row-hover, #f8f9fa);
}

/* Filter Inputs */
.filter-input, .filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
    background: white;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--input-border-focus, #667eea);
    box-shadow: var(--input-focus-shadow, 0 0 0 2px rgba(102, 126, 234, 0.25));
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

#page-info {
    font-weight: 500;
    color: #6c757d;
}

/* Form Styles */
.form-container {
    background: var(--bg-secondary, white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium, 0 4px 6px rgba(0, 0, 0, 0.07));
    border: 1px solid var(--border-color, #e1e8ed);
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border, #ced4da);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--input-bg, white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-border-focus, #667eea);
    box-shadow: var(--input-focus-shadow, 0 0 0 3px rgba(102, 126, 234, 0.1));
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Duplicate Suggestions */
.duplicate-suggestions {
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
    min-height: 16px;
}

/* Log Container */
.log-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e1e8ed;
    overflow: hidden;
}

.add-log-entry {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.add-log-entry textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    resize: vertical;
}

.log-entries {
    padding: 20px;
}

.log-entry {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.log-entry:hover {
    border-color: #667eea;
    background-color: #f8f9fa;
}

.log-entry.expanded {
    background-color: #f8f9fa;
}

.log-timestamp {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.log-content {
    color: #495057;
    line-height: 1.5;
}

.log-content.collapsed {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Manage Container */
.manage-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e1e8ed;
    overflow: hidden;
}

.add-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
}

.add-item input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
}

.items-list {
    padding: 20px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: opacity 0.5s ease-out;
}

.item-row.fade-out {
    opacity: 0;
}

.item-row .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Table action buttons */
.data-table .action-buttons {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-wrap: nowrap;
    min-width: 110px;
}

.data-table .action-buttons .btn {
    min-width: 28px;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1;
}

.item-name {
    font-weight: 500;
    color: #495057;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.confirm-modal .modal-body {
    text-align: center;
}

.confirm-modal .modal-actions {
    justify-content: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--btn-primary-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--btn-primary-shadow, 0 4px 12px rgba(102, 126, 234, 0.4));
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.back-to-top.visible {
    display: flex;
}


/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Responsive Design */
/* Additional tablet responsive styles */
@media (max-width: 1024px) {
    .navbar-controls {
        padding: 0 20px;
    }

    .navbar-menu .nav-menu {
        flex-wrap: wrap;
        gap: 2px;
    }

    .navbar-menu .nav-item {
        padding: 10px 15px;
        font-size: 13px;
    }

    .main-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .add-item {
        flex-direction: column;
    }
    
    .modal {
        width: 95%;
        margin: 20px;
    }

    /* Mobile Table Styles - Enable horizontal scrolling */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        border-radius: 8px;
    }

    .data-table {
        min-width: 1000px; /* Force table to be wider than mobile screen */
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        white-space: nowrap;
        min-width: 80px;
    }

    .data-table th {
        vertical-align: top;
    }

    /* Ensure filter inputs/selects display properly in mobile */
    .filter-input, .filter-select {
        display: block;
        width: 100%;
        padding: 6px;
        font-size: 12px;
        margin-top: 5px;
    }

    .data-table th:first-child,
    .data-table td:first-child {
        min-width: 60px; /* Checkbox column */
    }

    .data-table th:last-child,
    .data-table td:last-child {
        min-width: 120px; /* Actions column */
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    

    /* Enhanced Mobile Table Styles for small screens */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin: 0 -15px; /* Full width on small screens */
    }

    .data-table {
        min-width: 1200px; /* Even wider for small screens */
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
        white-space: nowrap;
        min-width: 75px;
    }

    .data-table th {
        vertical-align: top;
    }

    /* Smaller filter inputs for very small screens */
    .filter-input, .filter-select {
        display: block;
        width: 100%;
        padding: 4px;
        font-size: 11px;
        margin-top: 4px;
    }

    .data-table th:first-child,
    .data-table td:first-child {
        min-width: 50px;
    }

    .data-table th:last-child,
    .data-table td:last-child {
        min-width: 100px;
        white-space: normal;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Language Dropdown Styles */
.language-dropdown-container {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 120px;
    background: #667eea;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* Desktop position adjustment */
.desktop-control-icons .language-dropdown {
    right: 0;
    left: auto;
}

/* Login Page Styles */
#login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

#login > div {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

#login h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.form-container {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    margin-top: 30px;
}

.form-actions .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}