/* ==================== Базовые стили ==================== */
html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ==================== Hero-блок ==================== */
.hero {
    background: linear-gradient(135deg, #221E60, #ACADCE);
    color: white;
    padding: 120px 20px 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-in-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-in-out;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 10px 25px;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* ==================== Карточки ==================== */
.card-hover {
    transition: all 0.3s;
    border-radius: 10px;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==================== Основной контент ==================== */
.flex-grow-1 {
    flex: 1 0 auto;
}

/* ==================== Футер ==================== */
footer {
    background-color: #212529;
    color: white;
    padding: 20px 0;
    text-align: center;
    flex-shrink: 0;
}

/* ==================== Анимации ==================== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==================== Адаптивность ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero .btn {
        font-size: 1rem;
        padding: 8px 20px;
    }
}

/* ==================== Навбар ==================== */
.navbar-brand img {
    max-width: 100%;
    height: auto;
}

/* Красивые градиентные кнопки */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bg-gradient-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.btn-gradient-success:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4);
}

/* ==================== Статусы сертификатов ==================== */
.status-valid { color: #198754; font-weight: 600; }
.status-expiring { color: #FFC107; font-weight: 600; }
.status-expired { color: #DC3545; font-weight: 600; }

/* Подсветка строк таблицы для сертификатов */
.table-warning {
    background-color: #fff3cd !important;
    transition: background-color 0.3s ease;
}

.table-warning:hover {
    background-color: #ffe69c !important;
}

.table-danger {
    background-color: #f8d7da !important;
    transition: background-color 0.3s ease;
}

.table-danger:hover {
    background-color: #f1aeb5 !important;
}
