/* ============================================= */
/*     УМНЫЙ ДОМ — СВЕТЛАЯ СОВРЕМЕННАЯ ТЕМА     */
/* ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #1e293b !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    line-height: 1.6;
}

/* Основные цвета */
:root {
    --bg-primary: #ffffff;
    --bg-card: #f1f5f9;
    --bg-hover: #e2e8f0;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --border: #cbd5e1;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

/* Шапка */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--accent-cyan) !important;
}

    .navbar-brand img.logo {
        max-height: 60px;
        border: 2px solid var(--accent-cyan);
        border-radius: 12px;
    }

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        background: rgba(6, 182, 212, 0.1) !important;
        color: var(--accent-cyan) !important;
    }

/* Контейнеры */
.container {
    max-width: 1400px;
    padding: 2rem;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    color: var(--accent-blue);
    margin-bottom: 3rem;
    text-shadow: none;
}

/* Карточки */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
        border-color: var(--accent-cyan);
    }

/* Таблицы */
.table {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 1.5rem;
}

    .table th {
        background: var(--accent-cyan);
        color: white;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .table td {
        border-color: var(--border);
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background: rgba(6, 182, 212, 0.05);
    }

/* Кнопки */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary, .btn-success {
    background: var(--accent-cyan);
    border: none;
    color: white;
}

    .btn-primary:hover, .btn-success:hover {
        background: #0891b2;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
    }

.btn-warning {
    background: var(--accent-blue);
    color: white;
    border: none;
}

    .btn-warning:hover {
        background: #2563eb;
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

.btn-danger {
    background: var(--danger);
    color: white;
}

    .btn-danger:hover {
        background: #dc2626;
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    }

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Формы */
.form-control, .form-select {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

    .form-control:focus, .form-select:focus {

{
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.25);
}

/* Иконки действий */
.action-icons a {
    font-size: 1.3rem;
    padding: 0.4rem;
    transition: all 0.3s;
}

.action-icons .fa-eye {
    color: var(--accent-cyan);
}

.action-icons .fa-pencil-alt {
    color: var(--accent-blue);
}

.action-icons .fa-trash-alt {
    color: var(--danger);
}

.action-icons a:hover {
    transform: scale(1.3);
}

/* Пагинация */
.pagination .page-link {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    margin: 0 4px;
}

.pagination .page-item.active .page-link {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: white;
}

/* Футер */
footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

    footer a {
        color: var(--accent-cyan);
    }

        footer a:hover {
            color: white;
        }

/* Адаптивность */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 1rem;
    }
}
