/*
 * Глобальные стили компоновки в стиле Apple
 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #005bb5;
    text-decoration: underline;
}

header + main {
    margin-top: 20px;
}

/* Навигация */
.navbar {
    background-color: rgba(245, 245, 247, 0.8) !important;
    border-bottom: 1px solid #d2d2d7;
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.navbar-brand,
.nav-link {
    color: #1d1d1f !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #0071e3 !important;
}

.navbar-nav .nav-link.active {
    color: #0071e3 !important;
    border-bottom: 2px solid #0071e3;
    border-radius: 0;
}

/* Кнопки */
.btn {
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
        color 0.3s ease;
}

.btn-primary {
    background: linear-gradient(180deg, #42a1ff, #0077ed);
    border: none;
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #51adff, #0a84ff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(180deg, #f5f5f7, #e5e5ea);
    border: none;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #ffffff, #f5f5f7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #d2d2d7;
}

.table thead th {
    background-color: #f5f5f7;
    color: #1d1d1f;
    font-weight: 600;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
    border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfbfd;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f7;
    outline: 2px solid #0d6efd;
}

.organization-row {
    cursor: pointer;
}

/* Футер */
footer {
    background-color: #f5f5f7;
    color: #6e6e73;
    border-top: 1px solid #d2d2d7;
}

footer p {
    margin: 0;
}
