/* ShmiloTravel Admin Panel Styles */
/* עיצוב פאנל ניהול ShmiloTravel */

:root {
    /* Android App Color Scheme */
    --primary-color: #25D366;
    --primary-dark: #128C7E;
    --primary-teal: #075E54;
    --secondary-color: #075E54;
    --bg-color: #F7F8FA;
    --sidebar-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --surface: #F7F8FA;
    --surface-variant: #E9EDEF;
    --text-primary: #000000;
    --text-secondary: #667781;
    --border-color: #E9EDEF;
    --divider-color: #E9EDEF;
    --error-color: #E53935;
    --success-color: #25D366;
    --warning-color: #F59E0B;
    --sidebar-width: 260px;
    
    /* Material Design Elevations */
    --elevation-1: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
    --elevation-2: 0px 2px 4px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
    --elevation-4: 0px 4px 8px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.24);
    --elevation-8: 0px 8px 16px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.24);
}

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

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--surface);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--divider-color);
    background-color: var(--sidebar-bg);
}

.version-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    justify-content: center;
}

.version-info i {
    font-size: 14px;
    opacity: 0.7;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.user-info i {
    font-size: 20px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item:hover {
    background: #F3F4F6;
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(37, 211, 102, 0.1) 0%, transparent 100%);
    color: var(--primary-dark);
    border-right: 3px solid var(--primary-color);
}

.nav-item i {
    font-size: 24px;
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 20px;
}

/* Main Content */
.main-content {
    margin-right: var(--sidebar-width);
    padding: 32px;
    min-height: 100vh;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--elevation-2);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-4);
}

.stat-card i {
    font-size: 48px;
    color: var(--primary-color);
}

.stat-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--elevation-2);
}

.chart-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Filters */
.filters-bar {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input,
.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    min-width: 150px;
}

.search-input:focus,
.filter-select:focus {
    border-color: var(--primary-color);
}

/* Tables */
.table-container {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--elevation-2);
}

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

thead {
    background: #F9FAFB;
}

th {
    padding: 16px;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: #F9FAFB;
    cursor: pointer;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.mdc-button {
    font-family: 'Rubik', sans-serif !important;
    border-radius: 12px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    min-height: 48px !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    min-width: 36px !important;
    border-radius: 50% !important;
}

.btn-edit {
    color: var(--primary-color) !important;
}

.btn-delete {
    color: var(--error-color) !important;
}

.btn-restore {
    color: var(--success-color) !important;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-error {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    margin: 2px;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--elevation-8);
}

.modal-content.large {
    max-width: 700px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 24px;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary-color);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding: 16px;
    background-color: var(--surface-variant);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    user-select: none;
}

.checkbox-group label:hover {
    background-color: var(--surface);
    border-color: var(--primary-color);
}

.checkbox-group label:has(input[type="checkbox"]:checked) {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 500;
}

.checkbox-group label input[type="checkbox"] {
    cursor: pointer;
}

.image-preview {
    margin-top: 12px;
}

.image-preview img {
    max-width: 200px;
    border-radius: 8px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Lock Container */
.lock-container {
    margin-bottom: 24px;
}

#tagsLockBtn,
#areasLockBtn {
    border-color: var(--error-color) !important;
    color: var(--error-color) !important;
}

#tagsLockBtn.unlocked,
#areasLockBtn.unlocked {
    background-color: var(--error-color) !important;
    color: white !important;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s;
}

.pagination button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--text-primary);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

.toast.warning {
    background: var(--warning-color);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu-toggle i {
    font-size: 28px;
}

/* Mobile Toolbar Menu Button */
.mobile-menu-toggle#mobileToolbarMenu {
    display: flex;
    position: relative;
    top: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle#mobileToolbarMenu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.mobile-menu-toggle#mobileToolbarMenu i {
    font-size: 24px;
}

/* Mobile Backdrop */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-backdrop.show {
    display: block;
    opacity: 1;
}

/* Sidebar Close Button */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1002;
}

.sidebar-close-btn i {
    font-size: 24px;
}

/* Responsive Tables - Card Layout on Mobile */
.table-mobile-card {
    display: none;
}

/* Mobile Material Toolbar */
.mobile-toolbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--elevation-4);
    z-index: 1001;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.mobile-toolbar-title {
    font-size: 20px;
    font-weight: 500;
    color: white;
}

.mobile-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-toolbar-actions .mdc-button {
    color: white !important;
    min-width: auto !important;
    padding: 8px !important;
    background: transparent !important;
}

.mobile-toolbar-actions .mdc-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Filter Bars (Tags/Areas) - Hidden on desktop, shown on mobile */
.mobile-filter-bar {
    display: none; /* Hidden on desktop */
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 8px;
    background: var(--surface);
    box-shadow: var(--elevation-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* On mobile, show filter bars when inside places section */
@media (max-width: 768px) {
    #places-section .mobile-filter-bar {
        display: block !important;
    }
}

/* Tags filter bar - higher elevation (2dp) */
#mobileTagFilterBar {
    box-shadow: var(--elevation-2);
}

/* Areas filter bar - lower elevation (1dp) */
#mobileAreaFilterBar {
    box-shadow: var(--elevation-1);
}


.mobile-filter-bar::-webkit-scrollbar {
    display: none;
}

.mobile-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0 4px;
    background: var(--surface-variant);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.mobile-filter-chip:hover {
    background: var(--border-color);
}

.mobile-filter-chip.active {
    background: var(--primary-color);
    color: white;
}

.mobile-filter-chip:first-child {
    margin-right: 0;
}

.mobile-filter-chip:last-child {
    margin-left: 0;
}

.mobile-filter-chip:active {
    transform: scale(0.95);
}

/* Floating Action Button */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-teal);
    color: white;
    border: none;
    box-shadow: var(--elevation-8);
    cursor: pointer;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.mobile-fab i {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Toolbar */
    .mobile-toolbar {
        display: flex;
    }
    
    /* Mobile Menu Toggle - hide original, use toolbar menu */
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu-toggle#mobileToolbarMenu {
        display: flex;
        position: relative;
        top: 0;
        right: 0;
        background: transparent;
        box-shadow: none;
        width: 40px;
        height: 40px;
    }
    
    /* Hide desktop sidebar on mobile */
    .sidebar {
        width: 280px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-close-btn {
        display: flex;
    }
    
    /* Main Content - Full Width on Mobile */
    .main-content {
        margin-right: 0;
        padding: 0;
        padding-top: 56px;
        background: var(--surface);
    }
    
    /* Hide section headers on mobile, show in toolbar */
    .section-header {
        display: none;
    }
    
    .section-header h1 {
        font-size: 20px;
        font-weight: 500;
    }
    
    /* Mobile Filter Bars - Always show on mobile when places section exists */
    /* These should be visible as chips, not dropdowns */
    #places-section .mobile-filter-bar {
        display: block !important;
    }
    
    /* Tags filter bar - higher elevation (2dp) - matching Android */
    #places-section #mobileTagFilterBar {
        display: block !important;
        box-shadow: var(--elevation-2);
        z-index: 1;
    }
    
    /* Areas filter bar - lower elevation (1dp) - matching Android */
    #places-section #mobileAreaFilterBar {
        display: block !important;
        box-shadow: var(--elevation-1);
        z-index: 0;
    }
    
    /* Mobile FAB */
    .mobile-fab {
        display: flex;
    }
    
    /* Content Sections - Android Style */
    .content-section {
        padding: 8px;
    }
    
    /* Statistics Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    .stat-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .stat-card i {
        font-size: 36px;
    }
    
    .stat-content h3 {
        font-size: 24px;
        font-weight: 700;
    }
    
    /* Charts Grid */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    .chart-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .chart-card canvas {
        max-height: 250px !important;
    }
    
    /* Filters Bar - Hide on mobile, use filter chips instead */
    .filters-bar {
        display: none !important;
    }
    
    /* Mobile Filter Bars - Show as chips on mobile (not dropdowns) */
    /* These should always be visible when places section exists */
    #places-section .mobile-filter-bar {
        display: block !important;
    }
    
    /* Tags filter bar - higher elevation (2dp) - matching Android */
    #places-section #mobileTagFilterBar {
        display: block !important;
        box-shadow: var(--elevation-2);
    }
    
    /* Areas filter bar - lower elevation (1dp) - matching Android */
    #places-section #mobileAreaFilterBar {
        display: block !important;
        box-shadow: var(--elevation-1);
    }
    
    /* Tables - Convert to Cards on Mobile */
    .table-container {
        overflow: visible;
        background: transparent;
        box-shadow: none;
        padding: 8px;
    }
    
    table {
        display: none;
    }
    
    .table-mobile-card {
        display: block;
        background: var(--card-bg);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 8px;
        box-shadow: var(--elevation-2);
        transition: all 0.2s;
    }
    
    .table-mobile-card:active {
        transform: scale(0.98);
        box-shadow: var(--elevation-1);
    }
    
    .mobile-card-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border-bottom: 1px solid var(--divider-color);
    }
    
    .mobile-card-row:last-child {
        border-bottom: none;
    }
    
    .mobile-card-label {
        font-weight: 400;
        color: var(--text-secondary);
        font-size: 14px;
        min-width: 80px;
        margin-left: 12px;
    }
    
    .mobile-card-value {
        flex: 1;
        text-align: right;
        color: var(--text-primary);
        word-break: break-word;
        font-size: 14px;
    }
    
    .mobile-card-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--divider-color);
    }
    
    .mobile-card-actions .mdc-button {
        min-width: 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }
    
    /* Form Rows */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-field {
        margin-bottom: 20px;
    }
    
    .form-field input[type="text"],
    .form-field input[type="email"],
    .form-field input[type="password"],
    .form-field textarea,
    .form-field select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
        min-height: 48px;
    }
    
    /* Modals - Full Width on Mobile */
    .modal-content {
        width: 95%;
        max-width: none;
        max-height: 95vh;
        margin: 2.5vh auto;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-content.large {
        max-width: none;
    }
    
    .modal-header {
        padding: 20px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .close-btn {
        font-size: 36px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .modal-actions .mdc-button {
        width: 100%;
        height: 48px;
    }
    
    /* Buttons - Touch Friendly */
    .mdc-button {
        min-height: 48px !important;
        padding: 12px 24px !important;
    }
    
    .btn-icon {
        min-width: 48px !important;
        width: 48px !important;
        height: 48px !important;
    }
    
    /* Tabs */
    .tabs {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination button {
        padding: 10px 16px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Toast - Better Mobile Positioning */
    .toast {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
        padding: 16px 20px;
    }
    
    /* Lock Container */
    .lock-container {
        margin-bottom: 20px;
    }
    
    .lock-container .mdc-button {
        width: 100%;
    }
    
    /* Checkbox Group */
    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .checkbox-group label {
        padding: 12px;
        background: #F9FAFB;
        border-radius: 8px;
        min-height: 48px;
        cursor: pointer;
    }
    
    /* Image Preview */
    .image-preview img {
        max-width: 100%;
        width: 100%;
    }
    
    /* Navigation Items - Larger Touch Targets */
    .nav-item {
        padding: 16px 20px;
        min-height: 56px;
    }
    
    .nav-item i {
        font-size: 28px;
    }
    
    .nav-item span {
        font-size: 16px;
    }
}

/* Drag and Drop Styles */
.draggable-row {
    cursor: move;
    transition: background-color 0.2s;
    position: relative;
}

.draggable-row:hover {
    background-color: var(--surface-variant);
}

.draggable-row.dragging {
    opacity: 0.5;
    background-color: var(--surface-variant);
    z-index: 1000;
}

.drag-handle {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle i {
    transition: color 0.2s;
    pointer-events: none;
}

.draggable-row:hover .drag-handle i {
    color: var(--primary-color) !important;
}

/* Prevent buttons from interfering with drag */
.draggable-row td:last-child button {
    pointer-events: auto;
}

