/* styles.css */
/**
 * 600900 Search Admin Panel Styles
 * Стили панели администратора 600900
 * 
 * @author Дамир Викторович Радионов
 */

:root {
    /* 🎨 Light Theme Colors / Цвета светлой темы */
    --light-bg: #f4f7f4;
    --light-surface: #ffffff;
    --light-primary: #4caf50;
    --light-text: #333333;
    --light-secondary: #8bc34a;
    
    /* 🎨 Dark Theme Colors / Цвета темной темы */
    --dark-bg: #1a1d1a;
    --dark-surface: #2d332d;
    --dark-primary: #81c784;
    --dark-text: #e0e0e0;
    --dark-secondary: #a5d6a7;
}

/* 🌞 Light Theme / Светлая тема */
.light-theme {
    --bg-color: var(--light-bg);
    --surface-color: var(--light-surface);
    --primary-color: var(--light-primary);
    --text-color: var(--light-text);
    --secondary-color: var(--light-secondary);
}

/* 🌙 Dark Theme / Темная тема */
.dark-theme {
    --bg-color: var(--dark-bg);
    --surface-color: var(--dark-surface);
    --primary-color: var(--dark-primary);
    --text-color: var(--dark-text);
    --secondary-color: var(--dark-secondary);
}

/* 📱 Base Styles / Базовые стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 📊 Dashboard Grid / Сетка дашборда */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* 🎯 Navigation / Навигация */
.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
}

.main-nav li a {
    display: block;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-nav li a:hover {
    background: var(--primary-color);
    color: white;
}

/* 🎛️ Theme Switch / Переключатель темы */
.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* 🎯 Action Buttons / Кнопки действий */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.action-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 📱 Responsive Design / Адаптивный дизайн */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.search-stats {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-table {
    overflow-x: auto;
    margin-top: 1rem;
}

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

.stats-table th,
.stats-table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    text-align: center;
}

.stats-table tr:hover {
    background: var(--hover-color);
}

.stats-table .status-ok {
    color: var(--success-color);
}

.stats-table .total {
    font-weight: bold;
    background: var(--secondary-color);
    color: white;
}

.stats-table td:first-child {
    text-align: center;
}

.stats-table td:last-child {
    text-align: left;
}