﻿/* Reset and Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --warning-gradient: linear-gradient(270deg, #a4999d 0%, #ffffff 90%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --animation-duration: 0.3s;
}

[data-bs-theme="dark"] {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Loading Animation */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.plant-loader {
    position: relative;
    width: 100px;
    height: 150px;
}

.plant-stem {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 4px;
    height: 0;
    background: #4CAF50;
    transform: translateX(-50%);
    animation: growStem 2s ease-out forwards;
}

.plant-leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #81C784;
    border-radius: 0 100% 0 100%;
    opacity: 0;
}

.plant-leaf-1 {
    left: 20px;
    top: 40px;
    transform: rotate(-45deg);
    animation: growLeaf 0.5s 1s ease-out forwards;
}

.plant-leaf-2 {
    right: 20px;
    top: 60px;
    transform: rotate(135deg);
    animation: growLeaf 0.5s 1.3s ease-out forwards;
}

.plant-leaf-3 {
    left: 25px;
    top: 80px;
    transform: rotate(-45deg);
    animation: growLeaf 0.5s 1.6s ease-out forwards;
}

.plant-pot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: #8D6E63;
    border-radius: 0 0 20px 20px;
}

.loading-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #666;
    animation: pulse 2s infinite;
}

@keyframes growStem {
    to {
        height: 100px;
    }
}

@keyframes growLeaf {
    to {
        opacity: 1;
        transform: scale(1.2) rotate(-45deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Dashboard Header */
.dashboard-header {
    position: relative;
    padding: 3rem 2rem;
    background: var(--primary-gradient);
    border-radius: 1.5rem;
    overflow: hidden;
    color: white;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff20' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    animation: wave 10s linear infinite;
}

.wave2 {
    animation-delay: -5s;
    opacity: 0.5;
    bottom: 10px;
}

.wave3 {
    animation-delay: -2.5s;
    opacity: 0.3;
    bottom: 20px;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1440px);
    }
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: slideInDown 0.8s ease-out;
}

.title-icon {
    font-size: 3rem;
    margin-right: 1rem;
    animation: bounce 2s infinite;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all var(--animation-duration) ease;
}

    .glass-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px var(--shadow-color);
    }

/* Filter Section */
.filter-card {
    position: relative;
    overflow: hidden;
}

    .filter-card::before {
        content: '';
        position: absolute;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: shimmer 3s infinite;
        pointer-events: none; /* مهم — اجازه نده تاچ‌ها توسط این لایه گرفته شوند */
        z-index: 0; /* قرار گرفتن پشت محتوای داخلی */
        top: -20%; /* کمتر از قبلی تا پوشش کمتر باشه */
        left: -20%;
        width: 140%;
        height: 140%;
    }

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all var(--animation-duration) ease;
}

    .filter-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.02);
    }

.filter-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #666;
    margin: 0;
}

.form-select-transparent {
    background: transparent;
    border: none;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

/* Content Loader */
.content-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-radius: 1.5rem;
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
}

    .loader-dots span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--primary-gradient);
        animation: dotPulse 1.4s infinite ease-in-out both;
    }

        .loader-dots span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .loader-dots span:nth-child(2) {
            animation-delay: -0.16s;
        }

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Alert Cards */
.alerts-section {
    animation: fadeIn 0.8s ease-out;
}

.alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 12px rgba(31, 38, 135, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .alert-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(31, 38, 135, 0.25);
    }

@media (max-width: 768px) {
    .custom-alert-width {
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .custom-alert-width {
        width: 48.4% !important;
        margin-left: 20px;
    }
}

.alert-danger-gradient {
    background: var(--danger-gradient);
    color: white;
}

.alert-success-gradient {
    background: var(--success-gradient);
    color: white;
}
.alert-warning-gradient {
    background: var(--warning-gradient);
    color: black;
}
.alert-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.pulse-ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger-gradient);
    animation: pulse 1.5s infinite;
}

.pulse-warning {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--warning-gradient);
    animation: pulse 1.5s infinite;
}

.pulse-default {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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

.success-checkmark {
    width: 60px;
    height: 60px;
    position: relative;
}

.check-icon {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

    .check-icon::before {
        top: 3px;
        left: -2px;
        width: 30px;
        transform-origin: 100% 50%;
        border-radius: 100px 0 0 100px;
    }

    .check-icon::after {
        top: 0;
        left: 30px;
        width: 60px;
        transform-origin: 0 50%;
        border-radius: 0 100px 100px 0;
        animation: rotate-circle 4.25s ease-in;
    }

.icon-line {
    height: 4px;
    background-color: white;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.line-tip {
    top: 32px;
    left: 14px;
    width: 18px;
    transform: rotate(45deg);
    animation: check-tip 0.45s 0.8s ease-out forwards;
}

.line-long {
    top: 28px;
    right: 12px;
    width: 32px;
    transform: rotate(-45deg);
    animation: check-long 0.45s 0.8s ease-out forwards;
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }

    5% {
        transform: rotate(-45deg);
    }

    12% {
        transform: rotate(-405deg);
    }

    100% {
        transform: rotate(-405deg);
    }
}

@keyframes check-tip {
    0% {
        width: 0;
    }

    100% {
        width: 18px;
    }
}

@keyframes check-long {
    0% {
        width: 0;
    }

    100% {
        width: 32px;
    }
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.alert-description {
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.alert-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* KPI Cards */
/* اصلاح KPI Cards برای موبایل */
.kpi-section {
    width: 100%;
}

    .kpi-section .container-fluid {
        padding: 0 !important;
    }

    .kpi-section .row {
        margin: 0 !important;
        width: 100% !important;
    }

    .kpi-section .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 0.5rem;
    }

.kpi-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .kpi-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(31, 38, 135, 0.25);
    }

    .kpi-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--accent-color, #667eea) 0%, transparent 70%);
        opacity: 0.1;
        z-index: 0;
    }

.kpi-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color, #667eea) 0%, rgba(var(--accent-color, #667eea), 0.8) 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

    .kpi-icon i {
        font-size: 1.5rem;
        color: white;
    }

.kpi-content {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.value-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.value-unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.kpi-background {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color, #667eea) 0%, transparent 70%);
    opacity: 0.05;
    z-index: 1;
    transition: all 0.4s ease;
}

.kpi-card:hover .kpi-background {
    opacity: 0.1;
    transform: scale(1.1);
}

/* Dark Theme */
[data-bs-theme="dark"] .kpi-card {
    background: linear-gradient(135deg, rgba(43, 43, 64, 0.9) 0%, rgba(43, 43, 64, 0.7) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .kpi-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .value-number {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .value-unit {
    color: #94a3b8;
}

/* Responsive Adjustments */
/* بهبود استایل برای موبایل */
@media (max-width: 576px) {
    .filter-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .form-select-transparent {
        min-height: 44px; /* Minimum touch target size */
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .kpi-section .col-6 {
        padding: 0.25rem;
    }

    .kpi-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .sensor-card {
        margin-bottom: 0.5rem;
    }

    .mobile-cards .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .mobile-cards .col {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}


@media (max-width: 400px) {
    .kpi-card {
        padding: 0.75rem;
    }

    .value-number {
        font-size: 1.25rem;
    }

    .kpi-label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }
}

/* Animation for loading state */
.kpi-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

    .kpi-card.loading .value-number {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        color: transparent;
        border-radius: 4px;
    }

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
/* Force fix برای موبایل */
@media (max-width: 991px) {
    .kpi-section .row > * {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* اطمینان از Bootstrap Grid */
.kpi-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.kpi-section .col-6 {
    position: relative !important;
    width: 50% !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}
/* Date Filter Section */
.date-filter-section {
    animation: fadeIn 1.2s ease-out;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all var(--animation-duration) ease;
    width: 140px;
}

    .date-input:focus {
        outline: none;
        border-color: var(--bs-primary);
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.date-input-group i {
    position: absolute;
    right: 1rem;
    color: #999;
    pointer-events: none;
}

.date-separator {
    font-weight: 600;
    color: #666;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    transition: all var(--animation-duration) ease;
    cursor: pointer;
}

    .refresh-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

    .refresh-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Charts Section */
.charts-section {
    animation: fadeIn 1.4s ease-out;
}

    .charts-section .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

.chart-tabs {
    display: flex;
    gap: 0.5rem;
}

.chart-tab {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 2rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all var(--animation-duration) ease;
}

    .chart-tab:hover {
        background: rgba(102, 126, 234, 0.1);
        color: var(--bs-primary);
    }

    .chart-tab.active {
        background: var(--primary-gradient);
        color: white;
        transform: scale(1.05);
    }

.chart-container {
    position: relative;
    padding: 2rem;
}

.chart-pane {
    display: none;
}

    .chart-pane.active {
        display: block;
        animation: fadeIn 0.5s ease-out;
    }

.modern-chart {
    height: 350px;
    border-radius: 1rem;
    overflow: hidden;
}

/* Tables Section */
.tables-section {
    animation: fadeIn 1.6s ease-out;
}

    .tables-section .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

.table-view-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 0.25rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all var(--animation-duration) ease;
}

    .view-btn:hover {
        color: var(--bs-primary);
    }

    .view-btn.active {
        background: white;
        color: var(--bs-primary);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

.table-view {
    display: none;
}

    .table-view.active {
        display: block;
        animation: fadeIn 0.5s ease-out;
    }

/* Mobile Cards */
/* اصلاح مشکل موبایل کارت‌ها */
.mobile-cards {
    width: 100%;
    padding: 0;
}

    .mobile-cards .container-fluid {
        padding: 0 !important;
    }

    .mobile-cards .row {
        margin: 0 !important;
        width: 100% !important;
    }

    .mobile-cards .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 0.5rem;
    }

.sensor-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.sensor-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    color: white;
    flex-shrink: 0;
}

.sensor-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.time-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.sensor-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

    .sensor-value .value {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
    }

    .sensor-value .unit {
        font-size: 0.875rem;
        opacity: 0.8;
    }

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--bs-primary);
}

    .info-item i {
        color: var(--bs-primary);
        flex-shrink: 0;
    }

    .info-item div {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }

    .info-item .label {
        font-size: 0.65rem;
        color: #666;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.125rem;
    }

    .info-item .value {
        font-size: 0.875rem;
        font-weight: 600;
        color: #333;
        word-break: break-word;
    }

/* Pivot Specific */

/* بهبود استایل برای جدول pivot در موبایل */
.pivot-data-mobile .sensors-summary {
    max-height: none; /* حذف محدودیت ارتفاع */
}

.sensor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

    .sensor-item:last-child {
        border-bottom: none;
    }

.pivot-card .sensor-card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.pivot-data-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(79, 172, 254, 0.05);
    border-radius: 8px;
}

.location-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.sensors-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sensor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sensor-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.sensor-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.more-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    font-size: 0.7rem;
    color: #999;
    font-style: italic;
}

/* Dark Theme */
[data-bs-theme="dark"] .sensor-card {
    background: #2b2b40;
    border-color: #383854;
}

[data-bs-theme="dark"] .info-item {
    background: rgba(255, 255, 255, 0.03);
}

    [data-bs-theme="dark"] .info-item .label {
        color: #999;
    }

    [data-bs-theme="dark"] .info-item .value,
    [data-bs-theme="dark"] .location-text {
        color: #fff;
    }

[data-bs-theme="dark"] .sensor-item {
    background: #383854;
    border-color: #4a4a5e;
}

/* Responsive */
@media (max-width: 576px) {
    .mobile-cards .col-6 {
        padding: 0.25rem;
    }

    .sensor-card-header,
    .sensor-card-body {
        padding: 0.75rem;
    }

    .sensor-value .value {
        font-size: 1.25rem;
    }
}

/* Desktop Table */
.modern-table {
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sensor-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

    .sensor-table thead {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }

    .sensor-table th {
        padding: 1.25rem;
        text-align: right;
        font-weight: 600;
        color: #333;
        white-space: nowrap;
    }

.th-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .th-content i {
        font-size: 1.25rem;
        opacity: 0.6;
    }

.sensor-table tbody tr {
    border-bottom: 1px solid #f5f5f5;
    transition: all var(--animation-duration) ease;
}

    .sensor-table tbody tr:hover {
        background: rgba(102, 126, 234, 0.02);
        transform: scale(1.01);
    }

.sensor-table td {
    padding: 1.25rem;
    vertical-align: middle;
}

.table-row {
    animation: fadeInRow 0.5s ease-out;
    animation-fill-mode: both;
}

    .table-row:nth-child(1) {
        animation-delay: 0.05s;
    }

    .table-row:nth-child(2) {
        animation-delay: 0.1s;
    }

    .table-row:nth-child(3) {
        animation-delay: 0.15s;
    }

    .table-row:nth-child(4) {
        animation-delay: 0.2s;
    }

    .table-row:nth-child(5) {
        animation-delay: 0.25s;
    }

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.time-cell {
    display: flex;
    flex-direction: column;
}

    .time-cell .date {
        font-weight: 600;
        color: #333;
    }

    .time-cell .time {
        font-size: 0.875rem;
        color: #999;
    }

.badge-cell {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

    .badge-cell.greenhouse {
        background: rgba(76, 175, 80, 0.1);
        color: #4CAF50;
    }

    .badge-cell.device {
        background: rgba(33, 150, 243, 0.1);
        color: #2196F3;
    }

.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.value-cell {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    justify-content: flex-end;
}

    .value-cell .value {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--bs-primary);
    }

    .value-cell .unit {
        font-size: 0.875rem;
        color: #999;
    }

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
}

.empty-icon {
    margin-bottom: 2rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.empty-state h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.75rem;
    }

    .title-icon {
        font-size: 2rem;
    }

    .dashboard-subtitle {
        font-size: 0.95rem;
    }

    .kpi-card {
        padding: 1rem;
    }

    .kpi-icon {
        font-size: 2rem;
    }

    .value-number {
        font-size: 1.5rem;
    }

    .date-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .date-input {
        width: 120px;
        font-size: 0.875rem;
    }

    .refresh-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .chart-tabs {
        flex-wrap: wrap;
    }

    .chart-tab {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .table-view-switcher {
        flex-direction: column;
        width: 100%;
    }

    .view-btn {
        width: 100%;
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .dashboard-header {
        padding: 2rem 1rem;
    }

    .kpi-section .row {
        gap: 0.75rem !important;
    }

    .filter-item {
        flex: 1 1 100%;
    }

    .date-input-group {
        flex: 1;
    }

    .date-input {
        width: 100%;
    }
}

/* Dark Theme Support */
[data-bs-theme="dark"] {
    .sensor-card

{
    background: #1e1e2e;
}

.sensor-table {
    background: #1e1e2e;
}

    .sensor-table thead {
        background: linear-gradient(135deg, #2b2b40 0%, #1e1e2e 100%);
    }

    .sensor-table tbody tr {
        border-bottom-color: #2b2b40;
    }

        .sensor-table tbody tr:hover {
            background: rgba(102, 126, 234, 0.05);
        }

    .th-content,
    .sensor-table th {
        color: #fff;
    }

.time-cell .date,
.info-item .value {
    color: #fff;
}

.type-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.empty-state h4 {
    color: #fff;
}

.section-title {
    color: #fff;
}

.view-btn.active {
    background: #2b2b40;
}

.date-input {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

    .date-input:focus {
        background: rgba(255, 255, 255, 0.1);
    }


/* Pivot Table Specific Styles */
.pivot-data {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pivot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .pivot-item:last-child {
        border-bottom: none;
    }

.pivot-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    flex: 0 0 auto;
}

.pivot-value {
    font-weight: 600;
    color: var(--bs-primary);
    text-align: left;
    flex: 1 1 auto;
    margin-right: 1rem;
}

/* Pivot Table Header Responsive */
.sensor-table th {
    min-width: 120px;
    white-space: nowrap;
}

    .sensor-table th:first-child,
    .sensor-table th:nth-child(2),
    .sensor-table th:nth-child(3) {
        position: sticky;
        right: 0;
        background: inherit;
        z-index: 1;
    }

@media (max-width: 991px) {
    .mobile-cards .sensor-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .mobile-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

        .mobile-cards .sensor-card {
            width: 100% !important;
            max-width: none !important;
        }
}

/* بهبود استایل pivot cards */
.pivot-data {
    background: rgba(102, 126, 234, 0.02);
    border-radius: 1rem;
    padding: 1rem;
}

.pivot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .pivot-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .pivot-item:last-child {
        margin-bottom: 0;
    }

.pivot-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .pivot-label::before {
        content: "📊";
        font-size: 1rem;
    }

.pivot-value {
    font-weight: 700;
    color: var(--bs-primary);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

[data-bs-theme="dark"] .pivot-item {
    background: #2b2b40;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .pivot-data {
    background: rgba(255, 255, 255, 0.02);
}
/* Dark Theme */
[data-bs-theme="dark"] .pivot-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .pivot-label {
    color: #999;
}

[data-bs-theme="dark"] .pivot-value {
    color: #fff;
}

/* Responsive Pivot Table */
@media (max-width: 768px) {
    .pivot-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .pivot-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.8;
    }

    .pivot-value {
        margin-right: 0;
        font-size: 1.1rem;
    }
}

/*====================new styles ======================*/
/* اضافه کردن به استایل‌های موجود */
.home-container {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* کارت‌های داشبورد با حس Native */
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

    .dashboard-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

/* Fixed Header برای PWA */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: env(safe-area-inset-top);
}

/* Bottom Sheet Style برای فیلترها در موبایل */
@media (max-width: 767px) {
    .filter-offcanvas {
        border-radius: 24px 24px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        max-height: 90vh;
    }
}

/* Persian Date Selectors - Desktop Inline & Mobile Responsive */
/* ========================================
   Persian Date Filter - Main Styles
======================================== */

/* Container Styles */
.date-filter-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    direction: rtl;
    text-align: right;
}

.section-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* ========================================
   Desktop Layout - Single Line
======================================== */

.date-controls.desktop-inline {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}

/* Date Selectors */
.date-select {
    padding: 8px 12px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: white !important;
    font-size: 0.9rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-align: center !important;
    direction: rtl !important;
    min-height: 38px !important;
    flex-shrink: 0 !important;
}

    .date-select:hover {
        border-color: #4f46e5 !important;
        box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1) !important;
    }

    .date-select:focus {
        outline: none !important;
        border-color: #4f46e5 !important;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
        transform: translateY(-1px) !important;
    }

/* Selector Sizes */
.day-select {
    width: 70px !important;
    min-width: 70px !important;
}

.month-select {
    width: 120px !important;
    min-width: 120px !important;
}

.year-select {
    width: 85px !important;
    min-width: 85px !important;
}

/* Date Separator */
.date-controls.desktop-inline .date-separator {
    font-weight: 600 !important;
    color: #4f46e5 !important;
    font-size: 1.1rem !important;
    padding: 0 15px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
}

/* Refresh Button - Desktop */
.date-controls.desktop-inline .refresh-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    border: none !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: white !important;
    min-height: 38px !important;
    min-width: 120px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2) !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

    .date-controls.desktop-inline .refresh-btn:hover:not(:disabled) {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4) !important;
        background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%) !important;
    }

    .date-controls.desktop-inline .refresh-btn:active:not(:disabled) {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3) !important;
    }

    .date-controls.desktop-inline .refresh-btn:disabled {
        opacity: 0.6 !important;
        cursor: not-allowed !important;
        transform: none !important;
        box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1) !important;
    }

    .date-controls.desktop-inline .refresh-btn i {
        font-size: 0.85rem !important;
    }

    .date-controls.desktop-inline .refresh-btn .spinner-grow-sm {
        width: 0.9rem !important;
        height: 0.9rem !important;
    }

/* ========================================
   Mobile Layout - Responsive
======================================== */

@media (max-width: 767.98px) {
    /* Container Adjustments */
    .date-filter-section .card-body {
        padding: 1rem !important;
    }

    .section-title {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        justify-content: center !important;
    }

    /* Layout Change to Vertical */
    .date-controls.desktop-inline {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
    }

    .date-separator {
        text-align: center !important;
        font-size: 1.1rem !important;
        color: #4f46e5 !important;
        font-weight: 600 !important;
        padding: 5px 0 !important;
    }

    .refresh-btn {
        width: 100% !important;
        justify-content: center !important;
        margin-right: 0 !important;
    }

    /* Mobile Date Filter Cards */
    .date-filter-container .card {
        border-radius: 0.5rem !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        margin-bottom: 0.5rem !important;
    }

    .date-filter-container .card-body {
        padding: 0.75rem !important;
    }

    .date-filter-container .card-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
    }

    .date-filter-container .form-select-sm {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        height: auto !important;
        border-radius: 0.375rem !important;
    }

    .date-filter-container .row.g-1 > * {
        padding-right: 0.125rem !important;
        padding-left: 0.125rem !important;
    }

    .date-filter-container .row.g-2 > * {
        padding-right: 0.25rem !important;
        padding-left: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .date-filter-container .btn-sm {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        border-radius: 0.5rem !important;
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }

        .date-filter-container .btn-sm:hover:not(:disabled) {
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4) !important;
        }
}

@media (max-width: 575.98px) {
    .date-select {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* ========================================
   Tablet Optimization
======================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
    .date-controls.desktop-inline {
        gap: 10px !important;
    }

        .date-controls.desktop-inline .date-select {
            font-size: 0.85rem !important;
            padding: 6px 10px !important;
        }

    .day-select {
        width: 65px !important;
    }

    .month-select {
        width: 110px !important;
    }

    .year-select {
        width: 80px !important;
    }
}

/* ========================================
   Loading States & Animations
======================================== */

.refresh-btn:disabled .spinner-grow {
    animation-duration: 1s !important;
}

.date-filter-container .btn:disabled {
    opacity: 0.7 !important;
}

    .date-filter-container .btn:disabled .spinner-border {
        animation-duration: 0.8s !important;
    }

/* ========================================
   Bootstrap Select Arrow (RTL)
======================================== */

.form-select.date-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-left: 2.25rem !important;
}

/* ========================================
   Mobile view Pagination
======================================== */

/* اضافه کنید به انتهای فایل home-page.css */

/* Mobile Table Controls */
.mobile-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .export-btn:hover {
        background: #f5f5f5;
        border-color: #4f46e5;
        color: #4f46e5;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
    }

    .export-btn i {
        font-size: 1rem;
    }

/* Mobile Pagination */
.mobile-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .page-btn:hover:not(:disabled) {
        background: #4f46e5;
        border-color: #4f46e5;
        color: white;
        transform: scale(1.1);
    }

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

.page-info {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

    .items-per-page select {
        padding: 0.25rem 0.5rem;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-size: 0.875rem;
    }

/* Copy notification */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Dark theme support */
[data-bs-theme="dark"] .mobile-table-controls,
[data-bs-theme="dark"] .mobile-pagination {
    background: rgba(43, 43, 64, 0.95);
}

[data-bs-theme="dark"] .export-btn,
[data-bs-theme="dark"] .page-btn {
    background: #2b2b40;
    border-color: #383854;
    color: #fff;
}

    [data-bs-theme="dark"] .export-btn:hover,
    [data-bs-theme="dark"] .page-btn:hover:not(:disabled) {
        background: #4f46e5;
        border-color: #4f46e5;
    }

    /*Weather*/
