/* GSC Analytics Dashboard Styles */

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

:root {
    --primary-color: #4285F4;
    --success-color: #0F9D58;
    --warning-color: #F4B400;
    --danger-color: #DB4437;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--gray-100);
}

/* Header */
.main-header {
    background: white;
    border-bottom: 1px solid var(--gray-300);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a {
    margin-left: 2rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

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

.page-header h1 {
    font-size: 2rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: #3367D6;
}

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

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

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

.btn-danger {
    background: var(--danger-color);
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 12px;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 16px;
}

.btn-icon {
    background: none;
    border: 1px solid var(--gray-400);
    color: var(--gray-700);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-success {
    background: #D4EDDA;
    border-color: var(--success-color);
    color: #155724;
}

.alert-error {
    background: #F8D7DA;
    border-color: var(--danger-color);
    color: #721C24;
}

/* Sites Grid */
.sites-grid {
    display: grid;
    gap: 1.5rem;
}

/* Режим 1 колонка */
.sites-grid.view-mode-1 {
    grid-template-columns: 1fr;
}

/* Режим 2 колонки (по умолчанию) */
.sites-grid.view-mode-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Режим 3 колонки */
.sites-grid.view-mode-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Компактный вид для режима 3 колонки */
.view-mode-3 .site-card {
    padding: 1rem;
}

.view-mode-3 .site-metrics {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.view-mode-3 .metric-label {
    font-size: 11px;
}

.view-mode-3 .metric-value {
    font-size: 1.1rem;
}

.view-mode-3 .site-name a {
    font-size: 0.9rem;
}

.view-mode-3 .chart-stat-value {
    font-size: 1rem;
}

.view-mode-3 .site-period-filter {
    padding: 0.3rem 0.5rem;
    font-size: 11px;
}

.view-mode-3 .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.view-mode-3 .chart-stat {
    min-width: 70px;
}

.view-mode-3 .chart-stat-label {
    font-size: 10px;
}

.view-mode-3 .site-chart {
    height: 120px;
}

.view-mode-3 .chart-wrapper {
    gap: 0.75rem;
}

.view-mode-3 .site-footer {
    padding-top: 0.75rem;
    font-size: 11px;
}

/* Увеличенный график для режима 1 колонка */
.view-mode-1 .site-chart {
    height: 250px;
}

.site-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.site-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.site-name a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.site-name a:hover {
    color: var(--primary-color);
}

.site-name-actions {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.btn-icon-mini {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-icon-mini:hover {
    background: var(--gray-300);
    transform: scale(1.1);
}

.btn-copy-mini.copied {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    transform: scale(1.1);
}

.site-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.metric-change {
    font-size: 12px;
    margin-left: 0.5rem;
}

.metric-change.positive {
    color: var(--success-color);
}

.metric-change.negative {
    color: var(--danger-color);
}

.chart-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.chart-stat {
    flex-shrink: 0;
    text-align: center;
    min-width: 80px;
}

.chart-stat-label {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.chart-stat-left .chart-stat-value {
    color: var(--danger-color);
}

.chart-stat-right .chart-stat-value {
    color: var(--primary-color);
}

.site-chart {
    flex: 1;
    height: 150px;
}

.top-queries {
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.top-queries-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

/* Queries Table */
.queries-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.queries-table thead {
    background: var(--gray-100);
}

.queries-table th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
    cursor: pointer;
    user-select: none;
}

.queries-table th:hover {
    background: var(--gray-200);
}

.queries-table th.sortable {
    position: relative;
}

.sort-icon {
    margin-left: 0.25rem;
    opacity: 0.5;
    font-size: 10px;
}

.queries-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.queries-table tbody tr:hover {
    background: var(--gray-100);
}

.queries-table .query-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Site Actions */
.site-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.site-period-filter {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    color: var(--gray-700);
}

.site-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
}

/* Metrics Bar */
.metrics-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 1rem;
}

.metric-icon.clicks {
    background: #E3F2FD;
}

.metric-icon.impressions {
    background: #FCE4EC;
}

.metric-icon.ctr {
    background: #FFF9C4;
}

.metric-icon.position {
    background: #E8F5E9;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-300);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: -2px;
    transition: all 0.2s;
}

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

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

.tab-content {
    display: none;
}

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

/* Tables */
.table,
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table thead,
.data-table thead {
    background: var(--gray-100);
}

.table th,
.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td,
.data-table td {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.table tbody tr:hover,
.data-table tbody tr:hover {
    background: var(--gray-100);
}

.page-url {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

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

.badge-danger {
    background: #F8D7DA;
    color: #721C24;
}

/* Actions */
.actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state h2 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.empty-state p {
    margin-bottom: 2rem;
    color: var(--gray-600);
}

/* Info Box */
.info-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.info-box ol,
.info-box ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

/* Footer */
.main-footer {
    background: white;
    border-top: 1px solid var(--gray-300);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .sites-grid,
    .sites-grid.view-mode-1,
    .sites-grid.view-mode-2,
    .sites-grid.view-mode-3 {
        grid-template-columns: 1fr !important;
    }

    .metrics-bar {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .site-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Для планшетов - ограничиваем 3 колонки до 2 */
@media (max-width: 1200px) {
    .sites-grid.view-mode-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-info {
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
}

/* Sortable tables */
.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable-table th.sortable:hover {
    background: var(--gray-200);
}

.sortable-table .sort-icon {
    margin-left: 0.25rem;
    opacity: 0.5;
    font-size: 12px;
}

/* Recrawl Form */
.recrawl-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-300);
}

.recrawl-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.recrawl-input-group {
    display: flex;
    gap: 0.5rem;
}

.recrawl-url-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.recrawl-url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.recrawl-url-input::placeholder {
    color: var(--gray-500);
}

/* Recrawl Section on Detail Page */
.recrawl-section {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recrawl-section h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.recrawl-form-detail {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.recrawl-form-detail .recrawl-url-input {
    flex: 1;
    padding: 0.75rem 1rem;
}

/* Compact mode - hide recrawl form */
.view-mode-3 .recrawl-form {
    display: none;
}

/* Cron Info Block */
.cron-info-block {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cron-info-block h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cron-info-block h4 {
    color: var(--gray-800);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.cron-command-block {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.cron-command {
    flex: 1;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.cron-command code {
    display: block;
    padding: 0.75rem;
    background: var(--gray-900);
    color: #00ff00;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.cron-examples {
    margin: 2rem 0;
}

.cron-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.cron-table th,
.cron-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

.cron-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-900);
}

.cron-table code {
    background: var(--gray-200);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.cron-table tr:hover {
    background: var(--gray-50);
}

.cron-instructions {
    margin: 2rem 0;
}

.instruction-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.instruction-tab {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
}

.instruction-tab strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.instruction-tab ol {
    margin: 0;
    padding-left: 1.5rem;
}

.instruction-tab li {
    margin: 0.5rem 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.instruction-tab code {
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: var(--gray-900);
}

.info-box-warning {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-box-warning h4 {
    color: var(--warning-color);
    margin-top: 0;
}

.info-box-warning ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-box-warning li {
    margin: 0.5rem 0;
    color: var(--gray-800);
}

.info-box-success {
    background: #d4edda;
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-box-success h4 {
    color: var(--success-color);
    margin-top: 0;
}

.info-box-success p {
    margin: 0.5rem 0;
    color: var(--gray-800);
}

/* Spinner для кнопки синхронизации */
.spinner-small {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive для cron блока */
@media (max-width: 768px) {
    .cron-command-block {
        flex-direction: column;
    }

    .cron-command code {
        font-size: 11px;
    }

    .instruction-tabs {
        grid-template-columns: 1fr;
    }

    .cron-table {
        font-size: 13px;
    }

    .cron-table th,
    .cron-table td {
        padding: 0.5rem;
    }
}

/* ========================================
   Add Site to GSC Styles
   ======================================== */

/* Add Site Section */
.add-site-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
}

.add-site-section h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.add-site-section > p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Add Site Form */
.add-site-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray-500);
    font-size: 12px;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* DNS Token Result */
.dns-token-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.dns-token-result h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.dns-token-result > p {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

/* Token Box */
.token-box {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.token-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.token-label {
    font-weight: 600;
    color: var(--gray-700);
    min-width: 120px;
    flex-shrink: 0;
}

.token-value {
    color: var(--gray-900);
    word-break: break-word;
}

.token-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.token-code {
    flex: 1;
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
    word-break: break-all;
}

.btn-copy {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Verification Actions */
.verification-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.verification-actions .btn {
    flex: 0 1 auto;
}

/* Verification Result */
.verification-result {
    margin-top: 2rem;
}

.verification-result .alert {
    padding: 1.5rem;
}

.verification-result h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.verification-result ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.verification-result ul li {
    margin-bottom: 0.5rem;
}

/* Alert Variants */
.alert-info {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    color: #0d47a1;
}

.alert-info strong {
    color: #0d47a1;
}

/* Responsive for Add Site Form */
@media (max-width: 768px) {
    .add-site-section {
        padding: 1.5rem;
    }

    .token-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .token-label {
        min-width: auto;
    }

    .token-value-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-copy {
        width: 100%;
    }

    .verification-actions {
        flex-direction: column;
    }

    .verification-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Tags & Filters Styles
   ======================================== */

/* Dashboard Filters - Beautiful Redesign */
.dashboard-filters-wrapper {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #4285F4 0%, #3367D6 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.filters-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-reset-filters {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-filters:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.dashboard-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
}

.filter-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.filter-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
}

.filter-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-content {
    flex: 1;
    min-width: 0;
}

.filter-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    color: var(--gray-900);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Active Filters */
.active-filters {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: white;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #1565C0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #90CAF9;
}

.filter-badge-remove {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #1565C0;
    font-size: 16px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.filter-badge-remove:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* Old filter styles compatibility */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
}

#tags-filter {
    min-height: 40px;
}

/* Site Tags */
.site-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
    align-items: center;
}

.site-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
    white-space: nowrap;
}

.site-tag.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.site-tag.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-remove {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    line-height: 1;
}

.tag-remove:hover {
    opacity: 0.7;
}

.btn-manage-tags {
    padding: 0.25rem 0.75rem;
    font-size: 12px;
    background: #f5f5f5;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-manage-tags:hover {
    background: var(--gray-200);
}

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

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

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

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
    font-size: 1rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Tags List */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.tags-list.tags-list-clickable .site-tag {
    cursor: pointer;
}

.no-tags {
    color: var(--gray-500);
    font-style: italic;
    margin: 0;
}

/* Tag Input */
.tag-input-group {
    display: flex;
    gap: 0.5rem;
}

.tag-input-group input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
}

.tag-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Tag Suggestions */
.tag-suggestions {
    position: relative;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background: var(--gray-100);
}

.suggestion-item.create-new {
    color: var(--primary-color);
    font-weight: 500;
}

.suggestion-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Notification */
.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-filters {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .filters-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        padding: 1rem;
    }

    .filters-header h3 {
        font-size: 1rem;
    }

    .btn-reset-filters {
        width: 100%;
    }

    .filter-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .filter-icon {
        width: 100%;
        height: 50px;
    }

    .active-filters {
        padding: 0 1rem 1rem 1rem;
        flex-direction: column;
    }

    .filter-badge {
        width: 100%;
        justify-content: space-between;
    }

    .filter-group {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .tag-input-group {
        flex-direction: column;
    }
}

/* ========================================
   Inactive Sites (Hidden/Archived) Styles
   ======================================== */

/* Inactive sites section */
.inactive-sites-section {
    margin: 2rem 0;
}

/* Spoiler (details/summary) */
.inactive-sites-spoiler {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.inactive-sites-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #999 0%, #777 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    transition: all 0.2s;
}

.inactive-sites-header:hover {
    background: linear-gradient(135deg, #888 0%, #666 100%);
}

.inactive-sites-header::-webkit-details-marker {
    display: none;
}

.inactive-sites-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.inactive-sites-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.inactive-sites-spoiler[open] .inactive-sites-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Inactive site card styling */
.site-card-inactive {
    opacity: 0.85;
    border-left: 4px solid #999;
}

.site-card-inactive:hover {
    opacity: 1;
}

.inactive-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Hide/Show site button */
.btn-hide-site {
    background: #fff;
    border: 1px solid var(--gray-400);
    color: var(--gray-700);
    transition: all 0.2s;
}

.btn-hide-site:hover {
    background: #FFF9C4;
    border-color: #F4B400;
    color: #F4B400;
}

.btn-show-site {
    background: #fff;
    border: 1px solid var(--gray-400);
    color: var(--gray-700);
    transition: all 0.2s;
}

.btn-show-site:hover {
    background: #E3F2FD;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive for inactive sites */
@media (max-width: 768px) {
    .inactive-sites-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        padding: 1rem;
    }

    .inactive-sites-count {
        text-align: center;
    }
}

/* ============================================
   Chart Markers (Google Updates & Site Works)
   ============================================ */

.chart-markers-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.btn-chart-marker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-chart-marker:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-chart-marker.active {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.btn-settings {
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-settings:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    transform: rotate(45deg);
}

.marker-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.marker-google {
    background: #DB4437;
}

.marker-work {
    background: #0F9D58;
}

/* ============================================
   Modal Form Elements
   ============================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.9375rem;
    color: var(--gray-900);
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.form-control-color {
    width: 80px;
    height: 40px;
    padding: 0.25rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ============================================
   Updates & Works Lists
   ============================================ */

.update-form-section,
.work-form-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.updates-list-section,
.works-list-section {
    margin-top: 2rem;
}

.updates-list,
.works-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.update-item,
.work-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
}

.update-item:hover,
.work-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-300);
}

.update-item-header,
.work-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.update-item-date,
.work-item-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
}

.update-item-actions,
.work-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-small {
    background: none;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-icon-small:hover {
    opacity: 1;
    transform: scale(1.2);
}

.update-item-title,
.work-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.update-item-description,
.work-item-description {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-100);
}

.empty-message {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 8px;
}

/* ============================================
   Responsive adjustments
   ============================================ */

@media (max-width: 768px) {
    .chart-markers-buttons {
        flex-wrap: wrap;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .btn-chart-marker {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .updates-list,
    .works-list {
        max-height: 300px;
    }
}

/* ============================================
   Sync and Delete Features
   ============================================ */

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-2px);
}

.btn-info:active {
    transform: translateY(0);
}

.btn-info:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Actions column improvements */
.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.actions .btn-small {
    white-space: nowrap;
}

/* Site Account Info */
.site-account-info {
    margin: 0.5rem 0;
}

.site-account-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.site-account-badge:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #000;
    background: #f0f0f0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Sync Results Styles */
.sync-stats {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.sync-stats h3 {
    margin-top: 0;
    color: #495057;
    font-size: 1.1rem;
}

.sync-stats ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.sync-stats li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.sync-stats li:last-child {
    border-bottom: none;
}

.error-details {
    margin-top: 20px;
}

.error-details h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.error-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #fff5f5;
    border: 1px solid #f8d7da;
    border-radius: 6px;
}

.error-item {
    padding: 10px;
    margin-bottom: 10px;
    background: white;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

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

.error-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
}

.error-text {
    flex-grow: 1;
    color: #721c24;
    line-height: 1.5;
}

/* Alert Styles in Modal */
.modal .alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 0;
}

.modal .alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.modal .alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.modal .alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.modal .alert strong {
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Data Sync Modal Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid;
}

.stat-card.stat-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.stat-card.stat-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.stat-card.stat-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.deactivated-sites {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.sites-list {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.site-item {
    padding: 8px 10px;
    margin: 5px 0;
    background: white;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-item.deactivated {
    border-left: 3px solid #ffc107;
}

.site-name {
    font-weight: 500;
    color: #333;
}

.site-reason {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.error-site {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.site-icon {
    font-size: 1.2rem;
}

.account-badge {
    margin-left: 10px;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
}

.error-message {
    padding-left: 30px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: #3367D6;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}


@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
