﻿/* ====== ОСНОВНОЙ ФЛЕКС ДЛЯ ПРИЖАТОГО ФУТЕРА ====== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #e7f1ff 0%, #d0e2ff 100%);
    background-attachment: fixed;
    color: #1e2a3a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-content {
    flex: 1 0 auto; /* занимает всё доступное пространство, толкая футер вниз */
}

.footer {
    flex-shrink: 0;
    background: linear-gradient(to right, #0d47a1, #1565c0);
    color: rgba(255,255,255,0.8);
    padding: 0.6rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* ====== НАВИГАЦИЯ ====== */
.navbar {
    background: linear-gradient(to right, #0d47a1, #1565c0) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 4px;
    margin: 0 2px;
}

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
    }

.dropdown-menu {
    background-color: #1565c0;
    border: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.dropdown-item {
    color: #ffffff;
    font-weight: 500;
}

    .dropdown-item:hover {
        background-color: #0d47a1;
        color: #ffffff;
    }

/* ====== ЗАГОЛОВКИ ====== */
h1, h2, h3, h4, h5, h6 {
    color: #0a2f6c;
    font-weight: 600;
}

/* ====== КАРТОЧКИ ====== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #ffffff;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(13, 110, 253, 0.2);
    }

.card-img-top {
    border-radius: 12px 12px 0 0;
}

/* ====== КНОПКИ ====== */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    transition: all 0.3s;
    font-weight: 500;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0b5ed7, #094db2);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
    }

.btn-success {
    background: linear-gradient(135deg, #0d6efd, #17a2b8);
    border: none;
}

.btn-warning {
    background: #ffc107;
    border: none;
    color: #1e2a3a;
}

.btn-danger {
    background: #dc3545;
    border: none;
}

/* ====== ТАБЛИЦЫ ====== */
.table {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    .table thead {
        background: linear-gradient(to right, #0d47a1, #1565c0);
        color: #ffffff;
    }

        .table thead th {
            font-weight: 600;
            border-bottom: none;
            padding: 12px;
        }

    .table tbody tr:hover {
        background-color: #e7f1ff;
        transition: background-color 0.2s;
    }

    .table td, .table th {
        vertical-align: middle;
        padding: 10px;
    }

/* ====== ФОРМЫ ====== */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

/* ====== ДОПОЛНИТЕЛЬНЫЕ БЛОКИ ====== */
.bg-light {
    background-color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    color: #0d6efd;
    font-weight: 500;
}

    a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover {
        color: #0a58ca;
        text-decoration: underline;
    }

.rounded-circle {
    border: 3px solid #0d6efd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
}
