/**
 * استایل‌های پنل ادمین تهران سایت
 */

/* ریست و متغیرهای CSS */
:root {
    --primary-color: #0073aa;
    --primary-dark: #005a87;
    --secondary-color: #f7f7f7;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #23282d;
    --light-color: #f8f9fa;
    --border-color: #ccd0d4;
    --text-color: #555;
    --text-dark: #23282d;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-small: 4px;
}

/* استایل‌های کلی */
.tehran-site-admin {
    font-family: 'Tahoma', 'Arial', 'IRANSans', sans-serif;
    direction: rtl;
    background: #f1f1f1;
    min-height: 100vh;
    padding: 20px 0;
}

.tehran-site-admin * {
    box-sizing: border-box;
}

.tehran-site-admin h1 {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    padding: 15px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    position: relative;
}

.tehran-site-admin h1::before {
    content: '⚙️';
    margin-left: 10px;
    font-size: 24px;
}

.tehran-site-admin h2 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    position: relative;
}

.tehran-site-admin h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.tehran-site-admin h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

/* کارت‌ها */
.tehran-site-admin .card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tehran-site-admin .card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.tehran-site-admin .card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* بخش ورود رمز عبور */
.password-section {
    max-width: 650px;
    margin: 80px auto;
    text-align: center;
}

.password-section .card {
    padding: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    box-shadow: var(--shadow-heavy);
}

.password-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 700;
}

.password-section .form-table {
    margin: 30px 0;
}

.password-section .form-table th,
.password-section .form-table td {
    text-align: center;
    padding: 15px;
}

.password-section input[type="password"] {
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    letter-spacing: 2px;
    transition: var(--transition);
}

.password-section input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* تب‌ها */
.nav-tab-wrapper {
    border-bottom: 2px solid var(--border-color);
    margin: 30px 0 0 0;
    padding: 0;
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.nav-tab {
    background: var(--light-color);
    border: none;
    color: var(--text-color);
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
    padding: 15px 20px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover {
    background: #fafafa;
    color: var(--text-dark);
    transform: translateY(-1px);
}

.nav-tab-active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

.nav-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* آیکون‌های تب */
.nav-tab[href="#general"]::before { content: '⚙️'; margin-left: 8px; }
.nav-tab[href="#sms"]::before { content: '📱'; margin-left: 8px; }
.nav-tab[href="#dates"]::before { content: '📅'; margin-left: 8px; }
.nav-tab[href="#messages"]::before { content: '💬'; margin-left: 8px; }
.nav-tab[href="#stats"]::before { content: '📊'; margin-left: 8px; }
.nav-tab[href="#custom-sms"]::before { content: '✉️'; margin-left: 8px; }
.nav-tab[href="#maintenance"]::before { content: '🔧'; margin-left: 8px; }

/* محتوای تب‌ها */
.tab-content {
    padding: 30px 0;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-content:first-child {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فرم‌ها */
.form-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 20px 0;
}

.form-table th {
    width: 250px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    vertical-align: top;
    padding: 20px 15px 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.form-table td {
    padding: 20px 10px 20px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.form-table tr:hover {
    background: rgba(0, 115, 170, 0.02);
}

.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="email"],
.form-table input[type="url"],
.form-table select,
.form-table textarea {
    width: 100%;
    max-width: 450px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-table textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-table .description {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
    font-style: italic;
}

.form-table .description code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
}

/* دکمه‌ها */
.button,
.button-primary,
.button-secondary {
    border-radius: var(--border-radius-small);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: 2px solid;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.button-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004570);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4);
}

.button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.button-secondary {
    background: white;
    border-color: var(--border-color);
    color: var(--text-color);
    box-shadow: var(--shadow-light);
}

.button-secondary:hover {
    background: var(--light-color);
    border-color: #999;
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.button:disabled,
.button-primary:disabled,
.button-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* دکمه‌های رنگی */
.button-success {
    background: linear-gradient(135deg, var(--success-color), #218838);
    border-color: var(--success-color);
    color: white;
}

.button-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    border-color: var(--danger-color);
    color: white;
}

.button-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    border-color: var(--warning-color);
    color: #212529;
}

.button-info {
    background: linear-gradient(135deg, var(--info-color), #138496);
    border-color: var(--info-color);
    color: white;
}

/* بخش تاریخ امروز */
.today-date-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #90caf9;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.today-date-section::before {
    content: '📅';
    position: absolute;
    top: -12px;
    right: 25px;
    background: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.today-date-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="90" cy="10" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="10" cy="90" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.4)"/></svg>');
    pointer-events: none;
}

.today-date-section h3 {
    margin: 0 0 20px 0;
    color: #1565c0;
    font-size: 20px;
    font-weight: 700;
}

.date-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.date-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(144, 202, 249, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.date-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.date-item label {
    font-weight: 700;
    color: #1565c0;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.date-item input,
.date-item span {
    background: transparent;
    border: none;
    font-weight: 600;
    color: #0d47a1;
    font-size: 16px;
    width: 100%;
}

/* تقویم شمسی */
.persian-calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.calendar-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.calendar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    animation: slideInScale 0.4s ease;
    border: 2px solid var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInScale {
    from { 
        opacity: 0; 
        transform: translate(-50%, -60%) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-header button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-header button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.calendar-header span {
    font-weight: bold;
    font-size: 20px;
    color: var(--text-dark);
    min-width: 220px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 50px);
    gap: 4px;
    text-align: center;
    margin-bottom: 25px;
    justify-content: center;
}

#calendar-grid > div {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-small);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

/* عناوین روزهای هفته */
#calendar-grid > div:nth-child(-n+7) {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: bold;
    color: var(--text-dark);
    cursor: default;
    border: 1px solid #dee2e6;
}

/* روزهای عادی */
#calendar-grid > div:nth-child(n+8) {
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

#calendar-grid > div:nth-child(n+8):hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

/* روز انتخاب شده */
#calendar-grid > div.selected {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

/* روز امروز */
#calendar-grid > div.today {
    background: var(--success-color) !important;
    color: white !important;
    font-weight: bold;
    position: relative;
}

#calendar-grid > div.today::after {
    content: '●';
    position: absolute;
    bottom: 2px;
    right: 50%;
    transform: translateX(50%);
    font-size: 8px;
}

.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* دکمه‌های انتخاب تاریخ */
.date-picker-btn {
    margin-right: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-small);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.date-picker-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004570);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4);
}

.date-picker-btn:active {
    transform: translateY(0);
}

/* بخش حالت تعمیر */
.maintenance-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.maintenance-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

.maintenance-toggle input[type="checkbox"] {
    transform: scale(1.5);
    margin: 0;
    accent-color: var(--primary-color);
}

.maintenance-toggle span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.maintenance-info {
    margin-top: 30px;
}

.maintenance-info .notice {
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: none;
    position: relative;
    overflow: hidden;
}

.maintenance-info .notice::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
}

.maintenance-info .notice-warning::before {
    background: var(--warning-color);
}

.maintenance-info .notice-success::before {
    background: var(--success-color);
}

.maintenance-info h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
}

.maintenance-info ul {
    margin: 15px 0 0 25px;
    line-height: 1.8;
}

.maintenance-info li {
    margin-bottom: 8px;
    position: relative;
}

.maintenance-info li::before {
    content: '→';
    position: absolute;
    right: -20px;
    color: var(--primary-color);
    font-weight: bold;
}

/* بخش آمار */
.stats-container {
    direction: rtl;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--primary-color));
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 115, 170, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: 900;
    margin: 15px 0;
    color: var(--card-color, var(--primary-color));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.stat-card .stat-label {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
    font-weight: 500;
}

.stat-card .stat-detail {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* رنگ‌بندی کارت‌های آمار */
.stat-card:nth-child(1) { --card-color: var(--primary-color); }
.stat-card:nth-child(2) { --card-color: var(--success-color); }
.stat-card:nth-child(3) { --card-color: var(--warning-color); }
.stat-card:nth-child(4) { --card-color: var(--danger-color); }

/* جداول آمار */
.daily-stats-section,
.popular-pages-section,
.browsers-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow-light);
}

.daily-stats-section h3,
.popular-pages-section h3,
.browsers-section h3 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.daily-stats-section h3::before { content: '📊'; margin-left: 10px; }
.popular-pages-section h3::before { content: '🔥'; margin-left: 10px; }
.browsers-section h3::before { content: '🌐'; margin-left: 10px; }

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.wp-list-table {
    border-collapse: collapse;
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    font-size: 14px;
}

.wp-list-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--text-dark);
    font-weight: 700;
    padding: 15px;
    text-align: right;
    border-bottom: 2px solid #dee2e6;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-list-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.wp-list-table tr:hover {
    background: rgba(0, 115, 170, 0.05);
}

.wp-list-table tr:last-child td {
    border-bottom: none;
}

/* رنگ‌بندی ردیف‌های آمار */
.wp-list-table tr[style*="background-color: #e8f5e8"] {
    background: linear-gradient(135deg, #e8f5e8, #d4edda) !important;
}

.wp-list-table tr[style*="background-color: #fff3cd"] {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
}

.wp-list-table tr[style*="background-color: #f8d7da"] {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb) !important;
}

/* بخش مرورگرها */
.browsers-chart {
    max-width: 500px;
}

.browsers-chart > div {
    margin: 15px 0;
    padding: 10px;
    background: #fafafa;
    border-radius: var(--border-radius-small);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.browsers-chart > div:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.browser-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.browser-name {
    color: var(--text-dark);
}

.browser-stats {
    color: var(--primary-color);
    font-weight: 700;
}

.browser-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.browser-progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.browser-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* صفحات محبوب */
.pages-list {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 15px;
}

.pages-list::-webkit-scrollbar {
    width: 8px;
}

.pages-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pages-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.pages-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.page-item:hover {
    background: #f8f9fa;
    padding: 12px 15px;
    margin: 0 -15px;
    border-radius: var(--border-radius-small);
    border-bottom-color: transparent;
}

.page-item:last-child {
    border-bottom: none;
}

.page-url {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-dark);
    border: 1px solid #e9ecef;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-stats {
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
}

.page-percentage {
    font-size: 12px;
    color: #6c757d;
    margin-right: 8px;
    font-weight: 500;
}

/* اعلان‌ها */
.tehran-site-notice {
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin: 20px 0;
    animation: slideInFromTop 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.tehran-site-notice::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notice-success::before {
    background: var(--success-color);
}

.notice-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notice-error::before {
    background: var(--danger-color);
}

.notice-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.notice-warning::before {
    background: var(--warning-color);
}

.notice-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.notice-info::before {
    background: var(--info-color);
}

.tehran-site-notice p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

/* خطاهای فیلد */
.field-error {
    color: var(--danger-color);
    font-size: 12px;
    display: block;
    margin-top: 8px;
    animation: fadeInShake 0.4s ease;
    font-weight: 600;
    background: #f8d7da;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

@keyframes fadeInShake {
    0% { opacity: 0; transform: translateX(-10px); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(2px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* بخش SMS */
#sms_help {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

#sms_help::before {
    content: '💡';
    position: absolute;
    top: -12px;
    right: 25px;
    background: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#sms_help h4 {
    color: var(--text-dark);
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
}

#sms_help ul {
    margin: 15px 0 0 25px;
    line-height: 1.8;
}

#sms_help li {
    margin-bottom: 10px;
    color: #495057;
    position: relative;
}

#sms_help li::before {
    content: '→';
    position: absolute;
    right: -20px;
    color: var(--primary-color);
    font-weight: bold;
}

#sms_help strong {
    color: var(--text-dark);
    font-weight: 700;
}

#sms_help code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
}

/* حالت‌های مختلف SMS Provider */
#username_row,
#password_row {
    transition: var(--transition);
}

#username_row.hidden,
#password_row.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* انیمیشن بارگذاری */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner.is-active {
    display: inline-block;
}

/* دکمه ارسال اصلی */
.main-submit {
    border-top: 2px solid #e9ecef;
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius);
    padding: 30px;
}

.main-submit .button-primary {
    font-size: 16px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-submit .button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 115, 170, 0.4);
}

.main-submit .button-primary:active {
    transform: translateY(-1px);
}

/* عملیات آمار */
.stats-actions {
    margin-top: 30px;
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
}

.stats-actions .button-secondary {
    font-size: 15px;
    padding: 12px 25px;
    font-weight: 600;
}

/* Checkbox و Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Labels */
label {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.2s ease;
}

label:hover {
    color: var(--primary-color);
}

/* Code blocks */
code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #e1e3e4;
}

pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 20px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: inherit;
}

/* Progress bars */
.progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .tehran-site-admin .card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .tehran-site-admin {
        padding: 10px;
    }
    
    .tehran-site-admin h1 {
        font-size: 24px;
        padding: 12px;
    }
    
    .date-display {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendar-container {
        min-width: 350px;
        margin: 20px;
        padding: 25px;
    }
    
    #calendar-grid {
        grid-template-columns: repeat(7, 40px);
        gap: 3px;
    }
    
    #calendar-grid > div {
        height: 40px;
    }
    
    .form-table {
        display: block;
    }
    
    .form-table tr {
        display: block;
        margin-bottom: 20px;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
    }
    
    .form-table th {
        display: block;
        width: 100%;
        padding: 0 0 8px 0;
        font-size: 16px;
    }
    
    .form-table td {
        display: block;
        padding: 0;
    }
    
    .nav-tab-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .browsers-chart {
        max-width: 100%;
    }
    
    .page-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .page-url {
        max-width: 100%;
        order: 2;
    }
    
    .page-stats {
        order: 1;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .tehran-site-admin {
        margin: 5px;
    }
    
    .tehran-site-admin .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .password-section {
        margin: 20px auto;
    }
    
    .password-section .card {
        padding: 30px 20px;
    }
    
    .password-section h2 {
        font-size: 22px;
    }
    
    .calendar-container {
        min-width: 320px;
        margin: 15px;
        padding: 20px;
    }
    
    #calendar-grid {
        grid-template-columns: repeat(7, 35px);
        gap: 2px;
    }
    
    #calendar-grid > div {
        height: 35px;
        font-size: 13px;
    }
    
    .stat-card .stat-number {
        font-size: 28px;
    }
    
    .nav-tab {
        min-width: 100px;
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .main-submit .button-primary {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .today-date-section {
        padding: 20px;
    }
    
    .today-date-section h3 {
        font-size: 18px;
    }
}

/* حالت چاپ */
@media print {
    .tehran-site-admin .nav-tab-wrapper,
    .tehran-site-admin .button,
    .tehran-site-admin .button-primary,
    .tehran-site-admin .button-secondary,
    .persian-calendar-modal,
    .tehran-site-notice {
        display: none !important;
    }
    
    .tehran-site-admin {
        background: white !important;
        color: black !important;
    }
    
    .tehran-site-admin .card {
        border: 2px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 20px !important;
    }
    
    .tehran-site-admin h1,
    .tehran-site-admin h2,
    .tehran-site-admin h3 {
        color: black !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .form-table input,
    .form-table select,
    .form-table textarea {
        border: 1px solid #000 !important;
        background: white !important;
    }
}

/* حالت تم تیره */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4a9eff;
        --primary-dark: #2980b9;
        --secondary-color: #2d3748;
        --success-color: #48bb78;
        --danger-color: #f56565;
        --warning-color: #ed8936;
        --info-color: #4299e1;
        --dark-color: #1a202c;
        --light-color: #2d3748;
        --border-color: #4a5568;
        --text-color: #e2e8f0;
        --text-dark: #f7fafc;
    }
    
    .tehran-site-admin {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .tehran-site-admin .card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .tehran-site-admin h1,
    .tehran-site-admin h2,
    .tehran-site-admin h3 {
        color: #f7fafc;
    }
    
    .form-table input,
    .form-table select,
    .form-table textarea {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-table input:focus,
    .form-table select:focus,
    .form-table textarea:focus {
        border-color: var(--primary-color);
        background: #374151;
    }
    
    .calendar-container {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    #calendar-grid > div:nth-child(-n+7) {
        background: #374151;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    #calendar-grid > div:nth-child(n+8) {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .wp-list-table {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .wp-list-table th {
        background: #374151;
        color: #f7fafc;
        border-color: #4a5568;
    }
    
    .wp-list-table td {
        border-color: #4a5568;
    }
    
    .wp-list-table tr:hover {
        background: rgba(74, 158, 255, 0.1);
    }
    
    .nav-tab {
        background: #374151;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .nav-tab:hover {
        background: #4a5568;
        color: #f7fafc;
    }
    
    .nav-tab-active {
        background: #2d3748;
        color: var(--primary-color);
    }
    
    .button-secondary {
        background: #374151;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .button-secondary:hover {
        background: #4a5568;
        color: #f7fafc;
    }
}

/* انیمیشن‌های اضافی */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 115, 170, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 115, 170, 0.8); }
}

/* کلاس‌های کمکی */
.animate-bounce { animation: bounce 2s infinite; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-glow { animation: glow 2s infinite; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none !important; }
.visible { display: block !important; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.pointer { cursor: pointer; }
.no-pointer { cursor: default; }

/* Scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Focus outline */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .tehran-site-admin {
        filter: contrast(1.5);
    }
    
    .tehran-site-admin .card {
        border-width: 2px;
    }
    
    .button,
    .button-primary,
    .button-secondary {
        border-width: 2px;
        font-weight: 700;
    }
}/**
 * استایل‌های پنل ادمین تهران سایت
 */

/* استایل‌های کلی */
.tehran-site-admin {
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
}

.tehran-site-admin h1 {
    color: #23282d;
    font-size: 23px;
    margin: 0 0 20px 0;
    padding: 9px 0 4px 0;
    line-height: 1.3;
}

/* کارت‌ها */
.tehran-site-admin .card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.tehran-site-admin .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tehran-site-admin .card h2 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.tehran-site-admin .card h3 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 16px;
}

/* بخش ورود رمز عبور */
.password-section {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}

.password-section .card {
    padding: 40px;
}

.password-section h2 {
    color: #0073aa;
    margin-bottom: 20px;
    font-size: 24px;
}

/* تب‌ها */
.nav-tab-wrapper {
    border-bottom: 1px solid #ccd0d4;
    margin: 20px 0 0 0;
    padding: 0;
}

.nav-tab {
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    color: #555;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    margin: 0 0 -1px 5px;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: #fafafa;
    color: #333;
}

.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    color: #000;
}

/* محتوای تب‌ها */
.tab-content {
    padding: 20px 0;
    display: none;
}

.tab-content:first-child {
    display: block;
}

/* فرم‌ها */
.form-table th {
    width: 220px;
    font-weight: 600;
    color: #23282d;
}

.form-table td {
    padding: 15px 10px 15px 0;
}

.form-table input[type="text"],
.form-table input[type="password"],
.form-table select,
.form-table textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
    outline: none;
}

.form-table .description {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.4;
}

/* دکمه‌ها */
.button,
.button-primary,
.button-secondary {
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.button-primary {
    background: #0073aa;
    border: 1px solid #0073aa;
    color: #fff;
}

.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.button-secondary {
    background: #f7f7f7;
    border: 1px solid #ccc;
    color: #555;
}

.button-secondary:hover {
    background: #fafafa;
    border-color: #999;
    color: #23282d;
}

/* بخش تاریخ امروز */
.today-date-section {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.today-date-section::before {
    content: '📅';
    position: absolute;
    top: -10px;
    right: 20px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 18px;
}

.today-date-section h3 {
    margin: 0 0 15px 0;
    color: #0c5460;
    font-size: 18px;
}

.date-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.date-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(190, 229, 235, 0.5);
}

.date-item label {
    font-weight: 600;
    color: #0c5460;
    display: block;
    margin-bottom: 5px;
}

.date-item input {
    background: transparent;
    border: none;
    font-weight: bold;
    color: #0c5460;
}

/* تقویم شمسی */
.persian-calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.calendar-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.calendar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 380px;
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-header button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #555;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-header button:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.calendar-header span {
    font-weight: bold;
    font-size: 18px;
    color: #23282d;
    min-width: 200px;
    text-align: center;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 45px);
    gap: 3px;
    text-align: center;
    margin-bottom: 20px;
    justify-content: center;
}

#calendar-grid > div {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#calendar-grid > div:first-child,
#calendar-grid > div:nth-child(2),
#calendar-grid > div:nth-child(3),
#calendar-grid > div:nth-child(4),
#calendar-grid > div:nth-child(5),
#calendar-grid > div:nth-child(6),
#calendar-grid > div:nth-child(7) {
    background: #f0f0f0;
    font-weight: bold;
    color: #666;
    cursor: default;
}

.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

/* دکمه‌های انتخاب تاریخ */
.date-picker-btn:hover {
    background: #005a87;
}

/* بخش حالت تعمیر */
.maintenance-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.maintenance-toggle input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0;
}

.maintenance-toggle span {
    font-weight: 500;
    color: #23282d;
}

.maintenance-info {
    margin-top: 25px;
}

.maintenance-info .notice {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.maintenance-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.maintenance-info ul {
    margin: 10px 0 0 20px;
    line-height: 1.6;
}

.maintenance-info li {
    margin-bottom: 5px;
}

/* بخش آمار */
.stats-container {
    direction: rtl;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, #0073aa);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
    color: var(--card-color, #0073aa);
}

.stat-card .stat-label {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.stat-card .stat-detail {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* جداول آمار */
.table-responsive {
    overflow-x: auto;
    margin: 15px 0;
}

.wp-list-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wp-list-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 15px;
    text-align: right;
    border-bottom: 2px solid #dee2e6;
}

.wp-list-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.wp-list-table tr:hover {
    background: #f8f9fa;
}

/* بخش مرورگرها */
.browsers-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.browsers-chart {
    max-width: 450px;
}

.browsers-chart > div {
    margin: 12px 0;
}

.browser-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
}

.browser-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    position: relative;
}

.browser-progress-fill {
    background: linear-gradient(90deg, #0073aa, #005a87);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.browser-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* صفحات محبوب */
.pages-list {
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-item:hover {
    background: #f8f9fa;
    padding-right: 10px;
    padding-left: 10px;
    margin: 0 -10px;
    border-radius: 4px;
}

.page-item:last-child {
    border-bottom: none;
}

.page-url {
    flex: 1;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #495057;
}

.page-stats {
    text-align: left;
    font-weight: 600;
    color: #0073aa;
}

.page-percentage {
    font-size: 12px;
    color: #6c757d;
    margin-right: 8px;
}

/* اعلان‌ها */
.tehran-site-notice {
    border-left: 4px solid;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    animation: slideInFromTop 0.3s ease;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.notice-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.notice-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* خطاهای فیلد */
.field-error {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

/* بخش SMS */
#sms_help {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

#sms_help h4 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 16px;
}

#sms_help ul {
    margin: 10px 0 0 20px;
    line-height: 1.6;
}

#sms_help li {
    margin-bottom: 8px;
    color: #6c757d;
}

#sms_help strong {
    color: #495057;
}

/* حالت‌های مختلف SMS Provider */
#username_row,
#password_row {
    transition: all 0.3s ease;
}

/* انیمیشن بارگذاری */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner.is-active {
    display: inline-block;
}

/* دکمه ارسال اصلی */
.main-submit {
    border-top: 2px solid #f0f0f0;
    padding-top: 25px;
    margin-top: 30px;
    text-align: center;
}

.main-submit .button-primary {
    font-size: 16px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
    transition: all 0.3s ease;
}

.main-submit .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4);
}

/* عملیات آمار */
.stats-actions {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .date-display {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendar-container {
        min-width: 320px;
        margin: 20px;
        padding: 20px;
    }
    
    #calendar-grid {
        grid-template-columns: repeat(7, 35px);
    }
    
    .form-table th {
        width: auto;
        display: block;
        padding-bottom: 5px;
    }
    
    .form-table td {
        display: block;
        padding-top: 5px;
    }
    
    .nav-tab {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tehran-site-admin {
        margin: 10px;
    }
    
    .tehran-site-admin .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .password-section {
        margin: 20px auto;
    }
    
    .password-section .card {
        padding: 25px;
    }
    
    .calendar-container {
        min-width: 280px;
        padding: 15px;
    }
    
    #calendar-grid {
        grid-template-columns: repeat(7, 30px);
        gap: 2px;
    }
    
    .stat-card .stat-number {
        font-size: 24px;
    }
}

/* حالت چاپ */
@media print {
    .tehran-site-admin .nav-tab-wrapper,
    .tehran-site-admin .button,
    .tehran-site-admin .button-primary,
    .tehran-site-admin .button-secondary,
    .persian-calendar-modal {
        display: none !important;
    }
    
    .tehran-site-admin .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* حالت تم تیره */
@media (prefers-color-scheme: dark) {
    .tehran-site-admin {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .tehran-site-admin .card {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .tehran-site-admin .card h2,
    .tehran-site-admin .card h3 {
        color: #e0e0e0;
    }
    
    .form-table input,
    .form-table select,
    .form-table textarea {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .calendar-container {
        background: #2d2d2d;
        color: #e0e0e0;
    }
} 