﻿/* Основные стили для AquaMy */

:root {
    --AquaMy-primary: #0d6efd;
    --AquaMy-secondary: #6c757d;
    --AquaMy-success: #198754;
    --AquaMy-info: #0dcaf0;
    --AquaMy-warning: #ffc107;
    --AquaMy-danger: #dc3545;
    --AquaMy-light: #f8f9fa;
    --AquaMy-dark: #212529;
}

/* Кастомные стили для карточек */
.card {
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Стили для навигации */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link.active {
    font-weight: bold;
    border-bottom: 2px solid white;
}

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

/* Стили для hero секции */
.hero-section {
    background: linear-gradient(135deg, var(--AquaMy-primary) 0%, #0a58ca 100%);
    color: white;
    border-radius: 15px;
}

/* Стили для бейджей */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Адаптивность изображений */
.img-fluid {
    max-height: 300px;
    object-fit: cover;
}

/* Стили для прогресс-баров в деталях вида */
.progress {
    height: 25px;
    border-radius: 12px;
}

.progress-bar {
    border-radius: 12px;
    font-weight: 500;
    line-height: 25px;
}

/* Стили для списков */
.list-group-item-action:hover {
    background-color: #b4cdff;
    color: var(--AquaMy-dark);
}

/* Стили для страниц блога */
.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--AquaMy-dark);
}

.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--AquaMy-dark);
}

.blog-content ul, .blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

/* Стили для тегов */
.badge {
    transition: all 0.2s ease;
    cursor: pointer;
}

.badge.bg-primary {
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.3);
    transform: translateY(-1px);
}

.badge.bg-secondary:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.2) !important;
    color: var(--bs-primary) !important;
}

/* Индикатор выбранных тегов */
.selected-tags-indicator {
    background-color: rgba(var(--bs-info-rgb), 0.1);
    border-left: 3px solid var(--bs-info);
}

/* Стили для форм */
.form-control:focus, .form-select:focus {
    border-color: var(--AquaMy-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Стили для кнопок */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

/* Анимации */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Стили для пагинации */
.pagination .page-item.active .page-link {
    background-color: var(--AquaMy-primary);
    border-color: var(--AquaMy-primary);
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .navbar-nav {
        margin-top: 1rem;
    }
}

/* Стили для кастомных alert */
.alert-custom {
    border-left: 5px solid var(--AquaMy-primary);
    background-color: rgba(13, 110, 253, 0.1);
}

.am-logo {
    position: relative;
    padding-left: 1.7em;
}

.am-logo::before {
    content: "";
    background-image: url("../images/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
}

.bg-custom-light-gray {
    background-color: #e0effb !important;
}

.bg-custom-light-primary {
    background-color: #c7e1f4 !important;
}

.bg-custom-green {
    background-color: rgba(4, 244, 148, 1) !important;
}

.bg-custom-light-green {
    background-color: rgba(4, 244, 148, 0.2) !important;
}

.text-custom-light-primary {
    color: #bcfdff !important;
}

.bg-custom-primary {
    background-color: #2391DE !important;
}

.bg-image-block {
    background-image: url("../images/aquarium.webp") !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-custom-block {
    background-color: rgba(35, 145, 222, 0.6) !important;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 400px;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-block {
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

 .material-symbols-outlined {
     font-variation-settings:
             'FILL' 0,
             'wght' 400,
             'GRAD' 0,
             'opsz' 24
 }

th {
    background-color: #d8d8d8 !important;
    color: #3c3c3c !important;
    text-align: center;
    vertical-align: middle;
}

tr.alternation {
    background-color: #dfe7ee !important;
}
tr.alternation td {
    background-color: inherit !important;
}