/* Page-specific CSS - loaded only on inner pages, not homepage */

/* ===== Map Page ===== */
.map-page {
    display: flex;
    height: calc(100vh - 70px);
}

.map-sidebar {
    width: 350px;
    background: #fff;
    overflow-y: auto;
    box-shadow: var(--shadow);
    z-index: 100;
}

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

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.filter-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.search-input {
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.search-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input,
.radio-label input {
    cursor: pointer;
}

.checkbox-label .count {
    margin-right: auto;
    color: var(--gray-color);
    font-size: 13px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

.price-range input[type="range"] {
    width: 100%;
}

.select-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    background: #fff;
}

.results-info {
    padding: 15px 20px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.results-info i {
    color: var(--primary-color);
}

.map-main {
    flex: 1;
    position: relative;
}

.full-map-container {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control-btn {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-color);
}

.map-control-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 500;
    max-height: 400px;
    overflow-y: auto;
    max-width: 200px;
}

.map-legend h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.legend-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.marker-electronics {
    background: #2196F3;
}

.marker-fashion {
    background: #E91E63;
}

.marker-food {
    background: #FF9800;
}

.marker-home {
    background: #4CAF50;
}

.marker-beauty {
    background: #9C27B0;
}

.marker-sports {
    background: #F44336;
}

.map-popup {
    width: 280px;
}

.popup-image {
    position: relative;
    height: 160px;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 12px;
}

.popup-content {
    padding: 15px;
}

.popup-category {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.popup-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.popup-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-color);
    margin-bottom: 8px;
}

.popup-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.popup-current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.popup-original-price {
    font-size: 13px;
    color: var(--gray-color);
    text-decoration: line-through;
}

.popup-actions {
    display: flex;
    gap: 8px;
}

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

.btn-icon-sm {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.btn-icon-sm:hover {
    background: var(--danger-color);
    color: #fff;
}

/* ===== Products Page ===== */
.products-page {
    padding: 0;
}

.products-layout {
    display: flex;
    gap: 30px;
}

.products-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark-color);
}

.category-list a:hover,
.category-list a.active {
    background: var(--light-color);
    color: var(--primary-color);
}

.category-list .count {
    margin-right: auto;
    color: var(--gray-color);
    font-size: 13px;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discount-filter,
.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stars {
    color: #FFC107;
    display: flex;
    gap: 2px;
}

.products-content {
    flex: 1;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.results-count {
    font-size: 14px;
    color: var(--gray-color);
}

.results-count strong {
    color: var(--dark-color);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-mode {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--dark-color);
    font-weight: 600;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--gray-color);
}

/* ===== Categories Page ===== */
.categories-page-section {
    padding: 60px 0;
}

.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover .category-card-icon {
    background: #fff;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card p {
    color: var(--gray-color);
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover h3,
.category-card:hover p {
    color: #fff;
}

.category-arrow {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    background: #fff;
}

/* ===== Breadcrumb Section ===== */
.breadcrumb-section {
    background: var(--light-color);
    padding: 20px 0;
}

.breadcrumb-section .breadcrumb {
    justify-content: flex-start;
}

.breadcrumb-section .breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb-section .breadcrumb span {
    color: var(--gray-color);
}

/* ===== Shopping Details Page Dark Mode ===== */
html[data-theme="dark"] body.shopping-details-page {
    background: var(--light-color);
    color: var(--dark-color);
}

html[data-theme="dark"] .breadcrumb {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .breadcrumb-list a {
    color: var(--gray-color);
}

html[data-theme="dark"] .breadcrumb-list a:hover {
    color: var(--primary-color);
}

html[data-theme="dark"] .breadcrumb-list .active {
    color: var(--dark-color);
}

html[data-theme="dark"] .shop-header-compact {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .shop-logo {
    background: var(--primary-gradient);
    border-color: var(--border-color);
}

html[data-theme="dark"] .verified-badge {
    background: var(--accent-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .meta-tag {
    background: var(--light-color);
    color: var(--gray-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .action-btn {
    background: #0F172A;
    color: var(--gray-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

html[data-theme="dark"] .slideshow-card {
    background: #0F172A;
}

html[data-theme="dark"] .slideshow {
    background: #0B1220;
}

html[data-theme="dark"] .product-modal-content {
    background: #0F172A;
    color: var(--dark-color);
}

html[data-theme="dark"] .product-info-section {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .product-info-table td:first-child {
    background: var(--light-color);
    color: var(--gray-color);
}

html[data-theme="dark"] .product-info-table td:last-child {
    color: var(--dark-color);
}

html[data-theme="dark"] .product-modal-body {
    background: #0F172A;
    color: var(--dark-color);
}

html[data-theme="dark"] .product-slideshow {
    background: var(--light-color);
}

html[data-theme="dark"] body.shopping-details-page {
    --dark-bg: #0B1220;
    --card-bg: #0F172A;
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body.shopping-details-page,
html[data-theme="dark"] body.shopping-details-page .main-content {
    background: var(--dark-bg);
    color: var(--text-primary);
}

html[data-theme="dark"] body.shopping-details-page .tabs-nav,
html[data-theme="dark"] body.shopping-details-page .info-card,
html[data-theme="dark"] body.shopping-details-page .schedule-table,
html[data-theme="dark"] body.shopping-details-page .product-info-section,
html[data-theme="dark"] body.shopping-details-page .slideshow-card,
html[data-theme="dark"] body.shopping-details-page .shop-header-compact,
html[data-theme="dark"] body.shopping-details-page .sidebar-card,
html[data-theme="dark"] body.shopping-details-page #shopInfo,
html[data-theme="dark"] body.shopping-details-page .similar-products-section {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] body.shopping-details-page .sidebar-card .sidebar-title,
html[data-theme="dark"] body.shopping-details-page .sidebar-card .collapse-caret,
html[data-theme="dark"] body.shopping-details-page .similar-products-section .section-title {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] body.shopping-details-page .similar-products-grid {
    background: transparent !important;
}

html[data-theme="dark"] body.shopping-details-page .similar-shop-card {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] body.shopping-details-page .similar-shop-header {
    background: rgba(255, 255, 255, 0.06) !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] body.shopping-details-page .similar-shop-products {
    background: transparent !important;
}

html[data-theme="dark"] body.shopping-details-page .similar-product-item {
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] body.shopping-details-page .similar-product-image {
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] body.shopping-details-page .tab-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] body.shopping-details-page .product-info-table td:first-child {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-secondary) !important;
}

html[data-theme="dark"] body.shopping-details-page .btn-inline.secondary,
html[data-theme="dark"] body.shopping-details-page .action-btn {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] body.shopping-details-page .slideshow,
html[data-theme="dark"] body.shopping-details-page .product-slideshow {
    background: #0B1220 !important;
}

html[data-theme="dark"] .my-location-marker div {
    background: #00BFA5 !important;
    border-color: #0F172A !important;
}

html[data-theme="dark"] .user-location-icon .user-location-marker svg path {
    fill: #FF6B35 !important;
    stroke: #0F172A !important;
}

html[data-theme="dark"] .user-location-icon .user-location-marker .pulse-ring {
    border-color: rgba(255, 107, 53, 0.6) !important;
}

.custom-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fancy scrollbar for products */
.custom-popup div[style*="overflow-x: auto"] {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.custom-popup div[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 6px;
}

.custom-popup div[style*="overflow-x: auto"]::-webkit-scrollbar-track {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    border-radius: 3px;
}

.custom-popup div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15));
    border-radius: 3px;
    transition: background 0.2s;
}

.custom-popup div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.25));
}

/* Product card hover effect */
.custom-popup div[style*="min-width: 95px"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Admin Panel Button ===== */
.admin-panel-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: all 0.25s ease;
    animation: adminPulse 2s infinite;
}

/* Ensure Leaflet controls stay below admin button */
.leaflet-control {
    z-index: 799 !important;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 999 !important;
}

.admin-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.admin-panel-btn i {
    font-size: 20px;
}

.admin-panel-btn .admin-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #ff4757;
    color: #fff;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(255, 71, 87, 0.35);
}

/* Specific positioning for owner button */
#ownerPanelBtn {
    bottom: 30px;
    /* Position above the marketer button, but closer */
}

@keyframes adminPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }

    50% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
}

/* Icon animations */
@keyframes icon-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* ===== Admin Panel (Themed) ===== */
.admin-container {
    max-width: 1200px;
    margin: 24px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.admin-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-header .btn-header {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-header .btn-header:hover {
    background: rgba(255, 255, 255, 0.25);
}

.admin-tabs {
    display: flex;
    gap: 6px;
    padding: 0 16px;
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    overflow-x: auto;
}

.admin-tab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #fff;
}

.admin-tab:hover {
    color: var(--primary-color);
    background: rgba(255, 165, 0, 0.06);
}

.admin-content {
    padding: 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

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

html[data-theme="dark"] .admin-tabs {
    background: #0F172A;
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .admin-tab {
    color: var(--text-secondary);
}

html[data-theme="dark"] .admin-tab.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-color);
}

html[data-theme="dark"] .admin-tab:hover {
    background: rgba(255, 165, 0, 0.10);
}

html[data-theme="dark"] .admin-content {
    background: transparent;
}

html[data-theme="dark"] .admin-content .tab-pane,
html[data-theme="dark"] .admin-content .admin-section-row,
html[data-theme="dark"] .admin-content .search-box {
    background: transparent;
}

html[data-theme="dark"] .admin-container {
    background: #0B1220;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .admin-content {
    background: #0B1220;
}

html[data-theme="dark"] .admin-content .tab-pane {
    color: var(--text-primary);
}

html[data-theme="dark"] .admin-content .section-title {
    color: var(--text-primary);
}

html[data-theme="dark"] .admin-content .search-box,
html[data-theme="dark"] .admin-content .filter-row {
    background: transparent;
}

html[data-theme="dark"] .admin-content .search-input {
    background: #0F172A;
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .admin-content .search-input::placeholder {
    color: var(--text-secondary);
}

html[data-theme="dark"] .admin-content label {
    color: var(--text-secondary);
}

html[data-theme="dark"] .data-table {
    background: #0F172A;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .data-table td {
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .empty-state {
    color: var(--text-secondary);
}

html[data-theme="dark"] .loading,
html[data-theme="dark"] .loading p {
    color: var(--text-secondary);
}

html[data-theme="dark"] .modal-box {
    background: #0F172A;
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* ===== User Panel Dark Mode ===== */
html[data-theme="dark"] .user-panel-section {
    background: #0B1220;
}

html[data-theme="dark"] .panel-container {
    background: #0F172A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .panel-tabs {
    background: #0B1220;
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .panel-tab {
    color: var(--text-secondary);
}

html[data-theme="dark"] .panel-tab:hover {
    background: rgba(255, 107, 107, 0.08);
}

html[data-theme="dark"] .panel-tab.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-color);
}

/* Remove frames from panel tabs in both dark and light modes */
.panel-tab,
.panel-tab-premium {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.panel-tab.active,
.panel-tab-premium.active {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.panel-tab:hover,
.panel-tab-premium:hover {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.panel-tab-premium::before,
.panel-tab-premium:hover::before {
    display: none !important;
}

/* Responsive panel tabs for mobile and tablet - max 2 rows */
@media (max-width: 768px) {
    .panel-tabs {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .panel-tab,
    .panel-tab-premium {
        flex: 0 1 calc(50% - 8px) !important;
        min-width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        text-align: center !important;
        padding: 12px 8px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .panel-tabs {
        gap: 6px !important;
        padding: 8px !important;
    }

    .panel-tab,
    .panel-tab-premium {
        flex: 0 1 calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        padding: 10px 6px !important;
        font-size: 13px !important;
    }

    .panel-tab i,
    .panel-tab-premium i {
        font-size: 12px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .panel-tabs {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .panel-tab,
    .panel-tab-premium {
        flex: 0 1 calc(50% - 12px) !important;
        min-width: calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        text-align: center !important;
        padding: 14px 12px !important;
    }
}

/* Fix text alignment for kharide eshterak button to match other tabs */
.panel-tab-premium {
    justify-content: flex-start !important;
    text-align: right !important;
}

.panel-tab-premium.active {
    justify-content: flex-start !important;
    text-align: right !important;
}

/* Ensure all panel tabs have consistent text alignment */
.panel-tab {
    justify-content: flex-start !important;
    text-align: right !important;
}

.panel-tab.active {
    justify-content: flex-start !important;
    text-align: right !important;
}

/* Override center alignment on mobile/tablet for premium tab */
@media (max-width: 1024px) {
    .panel-tab-premium {
        text-align: right !important;
        justify-content: flex-start !important;
    }

    .panel-tab-premium.active {
        text-align: right !important;
        justify-content: flex-start !important;
    }

    .panel-tab {
        text-align: right !important;
        justify-content: flex-start !important;
    }

    .panel-tab.active {
        text-align: right !important;
        justify-content: flex-start !important;
    }
}

html[data-theme="dark"] .tab-pane {
    background: transparent;
    color: var(--text-primary);
}

html[data-theme="dark"] .products-table {
    background: #0F172A;
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .products-table th,
html[data-theme="dark"] .products-table td {
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .products-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .validation-popup-overlay {
    background: rgba(15, 23, 42, 0.85);
}

html[data-theme="dark"] .validation-popup {
    background: #0F172A;
    color: var(--text-primary);
}

html[data-theme="dark"] .validation-popup h4 {
    color: var(--text-primary);
}

html[data-theme="dark"] .validation-popup p {
    color: var(--text-secondary);
}

/* User Panel Forms & Fields */
html[data-theme="dark"] .form-field label {
    color: var(--text-primary);
}

html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea {
    background: #0B1220;
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .form-field input:focus,
html[data-theme="dark"] .form-field select:focus,
html[data-theme="dark"] .form-field textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

html[data-theme="dark"] .form-field input::placeholder,
html[data-theme="dark"] .form-field textarea::placeholder {
    color: var(--text-secondary);
}

/* Multi Upload */
html[data-theme="dark"] .multi-upload {
    background: #0B1220;
}

html[data-theme="dark"] .upload-drop {
    background: #0F172A;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

html[data-theme="dark"] .upload-drop.dragover {
    background: rgba(255, 107, 107, 0.08);
}

html[data-theme="dark"] .preview-item {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .preview-caption {
    color: var(--text-secondary);
}

html[data-theme="dark"] .avatar-preview {
    background: #0B1220;
}

html[data-theme="dark"] .avatar-preview i {
    color: var(--text-secondary);
}

/* Products Table Details */
html[data-theme="dark"] .products-table thead {
    background: #0B1220;
}

html[data-theme="dark"] .products-table th {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .price-display {
    color: var(--text-primary);
}

html[data-theme="dark"] .price-empty {
    color: var(--text-secondary);
}

html[data-theme="dark"] .btn-edit-price {
    background: rgba(79, 70, 229, 0.15);
    color: #a5b4fc;
}

html[data-theme="dark"] .btn-edit-price:hover {
    background: rgba(79, 70, 229, 0.25);
}

html[data-theme="dark"] .price-edit-row {
    background: #0B1220;
    border-color: var(--border-color);
}

html[data-theme="dark"] .price-edit-input {
    background: #0F172A;
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .price-edit-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

html[data-theme="dark"] .btn-cancel-price {
    background: #1e1b4b;
    color: #c4b5fd;
}

html[data-theme="dark"] .price-edit-hint {
    color: var(--text-secondary);
}

/* Badges & Action Buttons */
html[data-theme="dark"] .badge-active {
    background: #064e3b;
    color: #6ee7b7;
}

html[data-theme="dark"] .badge-inactive {
    background: #7f1d1d;
    color: #fca5a5;
}

html[data-theme="dark"] .btn-edit {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #93c5fd;
}

html[data-theme="dark"] .btn-edit:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

html[data-theme="dark"] .btn-delete {
    background: linear-gradient(135deg, #991b1b, #b91c1c);
    color: #fca5a5;
}

html[data-theme="dark"] .btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

/* Subscription Plans */
html[data-theme="dark"] .subscription-intro {
    background: rgba(251, 146, 60, 0.12);
}

html[data-theme="dark"] .plan-card {
    background: #0F172A;
    border-color: rgba(251, 146, 60, 0.3);
}

html[data-theme="dark"] .plan-card:hover {
    border-color: var(--primary-color);
}

html[data-theme="dark"] .plan-features li {
    border-bottom-color: var(--border-color);
    color: var(--text-secondary);
}

/* Dashboard & Products Tab Misc */
html[data-theme="dark"] .quick-action-card {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.06), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 112, 67, 0.15);
}

html[data-theme="dark"] .quick-action-card h4 {
    color: var(--text-primary);
}

html[data-theme="dark"] .quick-action-card p {
    color: var(--text-secondary);
}

html[data-theme="dark"] .quick-action-card .icon-bubble {
    background: rgba(255, 112, 67, 0.08);
    color: #ff7043;
}

html[data-theme="dark"] .product-name-display {
    background: transparent;
    color: var(--text-primary);
}

html[data-theme="dark"] .product-name-display:hover {
    background: rgba(79, 70, 229, 0.08);
}

html[data-theme="dark"] .product-img {
    background: #0B1220;
}

html[data-theme="dark"] .dashboard-grid h2 {
    color: var(--text-primary);
}

html[data-theme="dark"] .product-search-box {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .product-search-box input {
    background: transparent;
    color: var(--text-primary);
}

html[data-theme="dark"] .product-search-box input::placeholder {
    color: var(--text-secondary);
}

html[data-theme="dark"] .product-search-box i {
    color: var(--text-secondary);
}

html[data-theme="dark"] .loading {
    background: #0F172A;
    color: var(--text-secondary);
}

html[data-theme="dark"] .empty-state {
    background: #0F172A;
    color: var(--text-secondary);
}

html[data-theme="dark"] .upload-loading .loader {
    color: var(--text-secondary);
}

/* Products Tab Remaining Light Elements */
html[data-theme="dark"] .simple-modal-overlay {
    background: rgba(15, 23, 42, 0.85);
}

html[data-theme="dark"] .simple-modal-box {
    background: #0F172A;
    color: var(--text-primary);
}

html[data-theme="dark"] .simple-modal-header {
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .simple-modal-header h3 {
    color: var(--text-primary);
}

html[data-theme="dark"] .simple-modal-content {
    background: #0F172A;
}

html[data-theme="dark"] .simple-modal-actions {
    border-top-color: var(--border-color);
}

html[data-theme="dark"] .btn-modal-cancel {
    background: #0B1220;
    color: var(--text-primary);
}

html[data-theme="dark"] .simple-modal-input {
    background: #0B1220;
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .simple-modal-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

html[data-theme="dark"] .form-field select option {
    background: #0B1220;
    color: var(--text-primary);
}

html[data-theme="dark"] .products-table tbody tr {
    background: #0F172A;
}

html[data-theme="dark"] .products-table tbody tr:nth-child(odd) {
    background: #0B1220;
}

html[data-theme="dark"] .btn-ops-label {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    display: inline !important;
}

html[data-theme="dark"] .discount-modal-box input,
html[data-theme="dark"] .discount-modal-box textarea {
    background: #0B1220;
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Data Table Dark Mode Fix */
html[data-theme="dark"] .data-table {
    background: #0F172A;
}

html[data-theme="dark"] .data-table th {
    background: #0B1220;
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .data-table td {
    background: #0F172A;
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Operations (Amaliat) Text and Group Operations Background */
html[data-theme="dark"] .btn-ops-label {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    display: inline !important;
}

html[data-theme="dark"] #products .btn-ops-label {
    color: var(--text-primary) !important;
}

/* Group operations section background */
html[data-theme="dark"] .panel-content>div[style*="background"] {
    background: #0B1220 !important;
}

html[data-theme="dark"] .panel-content>div>span[style*="color: #495057"] {
    color: var(--text-primary) !important;
}

/* Bulk Action Panel (Inline Gradient Background) */
html[data-theme="dark"] .panel-content>div[style*="linear-gradient(135deg, #f8f9fa, #e9ecef)"] {
    background: #0B1220 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .panel-content>div[style*="linear-gradient(135deg, #f8f9fa, #e9ecef)"]>div>span[style*="color: #495057"] {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .panel-content>div[style*="linear-gradient(135deg, #f8f9fa, #e9ecef)"]>div>div>label[style*="color: #495057"] {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .panel-content>div[style*="linear-gradient(135deg, #f8f9fa, #e9ecef)"]>div>div>input[type="number"] {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--primary-gradient);
    color: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.data-table thead {
    background: var(--primary-gradient);
    color: #fff;
}

.data-table th {
    padding: 12px;
    text-align: right;
    font-size: 13px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.btn-edit {
    background: #4CAF50;
    color: #fff;
}

.btn-delete {
    background: #f44336;
    color: #fff;
}

.btn-view {
    background: #2196F3;
    color: #fff;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.12);
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.admin-section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 10px;
    color: #888;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Ensure badges inside admin tables render inline, not absolutely positioned */
.admin-content .data-table .badge {
    position: static;
    top: auto;
    left: auto;
}

@media (max-width: 768px) {
    .admin-content {
        padding: 14px;
    }

    .admin-header {
        padding: 16px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    /* Fix horizontal scrolling for admin tables on mobile/tablet */
    .tab-pane {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 800px;
        /* Ensure table has minimum width for horizontal scroll */
    }

    #reviewsTableContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== Location Registration Modal ===== */
.photo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.photo-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.remove-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.remove-photo:hover {
    background: rgba(244, 67, 54, 1);
    transform: scale(1.1);
}

.photo-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-photo {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-photo i {
    font-size: 16px;
}

.location-info,
.datetime-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.location-info i,
.datetime-info i {
    color: #667eea;
    font-size: 18px;
}

.location-info span,
.datetime-info span {
    flex: 1;
    color: #333;
}

#cameraStream {
    border: 2px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-buttons {
        flex-direction: column;
    }

    .btn-photo {
        width: 100%;
        min-width: auto;
    }

    .photo-preview {
        max-width: 100%;
    }
}

/* ===== Marketer Routes Styles ===== */
.routes-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.route-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.route-map-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.route-map-btn:disabled,
.route-map-btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.route-map-btn--secondary {
    background: linear-gradient(135deg, #14B8A6, #0EA5E9);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.route-map-btn.is-loading i {
    animation: spin 1s linear infinite;
}

.routes-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

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

.routes-table thead {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
}

.routes-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.routes-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.routes-table tbody tr:hover {
    background: #fff8f0;
}

.routes-table tbody tr:last-child {
    border-bottom: none;
}

.routes-table td {
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    color: #333;
}

.route-date-cell {
    font-weight: 700;
    color: #FFA500;
}

.route-count-cell {
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

.route-action-cell {
    text-align: center;
}

.btn-icon {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.btn-xs {
    padding: 6px 14px;
    font-size: 12px;
}

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

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.photo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.photo-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-time {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-map {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== Withdrawal Styles ===== */
.withdrawal-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.summary-info {
    flex: 1;
}

.summary-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.withdrawal-request-form {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.withdrawal-request-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.withdrawal-request-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.withdrawal-history {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.withdrawal-history h3 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .routes-table-container {
        overflow-x: auto;
    }

    .routes-table {
        font-size: 12px;
    }

    .routes-table th,
    .routes-table td {
        padding: 10px 8px;
        font-size: 11px;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .photo-wrapper {
        height: 150px;
    }

    .withdrawal-summary {
        grid-template-columns: 1fr;
    }

    .summary-value {
        font-size: 16px;
    }
}

/* Page-specific styles */
/* Hide selected filters bar on products.html and sellers.html */
body.products-page .selected-filters-bar,
body.sellers-page .selected-filters-bar {
    display: none !important;
}

body.products-page .selected-items-row,
body.sellers-page .selected-items-row {
    display: none !important;
}

/* ===== Map Styles ===== */
.map-picker-container {
    width: 100% !important;
    height: 400px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f5f5f5 !important;
    display: block !important;
    visibility: visible !important;
}

html[data-theme="dark"] .map-picker-container {
    border-color: var(--border-color) !important;
    background: #0B1220 !important;
}

.map-picker-container .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    font-family: 'Vazirmatn', sans-serif;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    border: none !important;
}

.map-picker-container .leaflet-control-container {
    font-family: 'Vazirmatn', sans-serif;
}
