/* Общие стили для ФПК РБ (theme_modern.css переопределяет оформление) */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Критические сообщения об ошибках */
.critical-alert {
    border: 2px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Навигация */
.navbar-brand {
    font-weight: bold;
}

.nav-dropdown-icon {
    margin-left: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Выпадающее меню при наведении (desktop) */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .navbar .dropdown:hover > .nav-link {
        color: #fff;
    }
}

/* Карточки */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Переопределение для модульных карточек - более высокая специфичность */
.card.module-card,
div.module-card,
.module-card.card {
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    background-color: transparent !important;
}

/* Календарь */
#calendar {
    margin-top: 2rem;
}

/* Филиалы */
.branch-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.branch-list::-webkit-scrollbar {
    width: 8px;
}

.branch-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.branch-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.branch-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.branch-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #0d6efd;
    background: #f8f9fa;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.branch-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.branch-item.current-branch {
    background: #d1ecf1;
    border-left-color: #0c5460;
    font-weight: bold;
}

/* Единый стиль карточек модулей */
.module-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.module-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.module-title-icon,
.module-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf2ff;
    color: #1d4ed8;
}

.module-title-icon {
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
}

.module-section-icon {
    width: 30px;
    height: 30px;
    margin-right: 0.4rem;
    font-size: 0.95rem;
}

.module-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.module-card {
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.module-card .module-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 1.1rem;
}

.module-card .module-actions .btn {
    text-align: left;
    font-weight: 600;
}

.module-card .module-actions .btn i {
    margin-right: 0.4rem;
}

.module-card .module-meta {
    color: #6c757d;
    font-size: 0.85rem;
}

.module-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
