:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    background-color: #f5f5f5;
}

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    font-size: 16px;
}

.navbar-brand {
    font-weight: 600;
    font-size: 20px;
}

.navbar-brand img {
    height: 50px;
    padding: 5px 10px;
    background-color: white;
    border-radius: 6px;
}

.navbar .nav-link {
    font-size: 15px;
}

.navbar .btn {
    font-size: 14px;
}

.navbar .text-white {
    font-size: 14px;
}

.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    margin-bottom: 20px;
    border: none;
}

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

.btn-primary:hover {
    background-color: #234a85;
    border-color: #234a85;
}

.modal-content {
    border-radius: 8px;
}

.alert {
    border-radius: 6px;
}

.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Стили для таблицы */
.table {
    font-size: 13px;
}

.table thead th {
    font-size: 14px;
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table tbody td {
    font-size: 13px;
    vertical-align: middle;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Кликабельные строки таблицы */
.table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

/* Стили для футера */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.footer a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.footer a:hover {
    color: #234a85;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}
