/* ========================================
   ЦВЕТОВЫЕ ПЕРЕМЕННЫЕ
   ======================================== */
:root {
    --primary-color: #0064f0;
    --primary-hover: #0052a3;
    --primary-light: #2078f3;
    --primary-dark: #0056ca;
    --secondary-color: #764ba2;
    --text-dark: #333;
    --border-color: #dee2e6;
    --background-light: #f8f9fa;
    --light-gray: #f6f6f6;
}


html {
    scrollbar-gutter: stable;
}

body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
    scrollbar-gutter: auto;
}


/* ========================================
   ОСНОВНЫЕ СТИЛИ
   ======================================== */
body {
    background-color: #e9f1fc;
    color: var(--text-dark);
    /*font-family: 'Segoe UI Variable Static Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
}

.fw-bold {
    font-weight: 600 !important;
}

.fw-bolder {
    font-weight: 800 !important;
}

/* ========================================
   ОСНОВНЫЕ КЛАССЫ
   ======================================== */
.primary-color {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}


.bg-danger-light {
    background-color: #ffd6d6 !important;;
}

.bg-transparent {
    background-color: transparent;
}


.bg-primary-light-gray {
    background-color: var(--light-gray) !important;
}


.opacity-80 {
    opacity: .80 !important
}

.pointer {
    cursor: pointer;
}

.section {
    background-color: white;
    border: none;
    padding: 1rem;
    border-radius: 2rem;
}


.outline-dashed {
    border: 2px dashed var(--primary-color);
}

.outline-dashed-danger {
    border: 2px dashed #ff9e9e;
}

.member-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.member-avatar i {
    color: var(--primary-color);
    font-size: 1.3rem;
    opacity: .3;
}

.team-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-avatar i {
    color: var(--primary-color);
    font-size: 1.3rem;
    opacity: .3;
}

.location-icon {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: .3;
}


.badge-light-gray {
    background-color: var(--light-gray);
    color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 3px 10px;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

a {
    color: inherit;
}

.news-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.news-detail-image {
    max-height: 400px;
    overflow: hidden;
    border-radius: 1rem;
}

.news-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.news-content p {
    margin-bottom: 1.5rem;
}


.section.h-100 {
    height: 100%;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 4rem;
    text-align: center;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown-separator {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .countdown-value {
        font-size: 1.75rem;
        min-width: 3rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }
}


.registration-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.5rem 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.flow-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.flow-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.flow-arrow {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-left: .8rem;
    margin-bottom: 0.25rem;
}

.navbar-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.status-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.team-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.status-draft {
    background-color: #e9ecef;
    color: #495057;
}

.status-withdrawn {
    background-color: #535353;
    color: #dfdfdf;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.filter-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}


.timeline .border-4 {
    border-width: 4px !important;
}

#memo ul {
    padding-left: 1.5rem;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.section {
    scroll-margin-top: 100px;
}

a[href^="#"] {
    color: var(--primary-color, #0066cc);
    transition: color 0.2s;
}

a[href^="#"]:hover {
    color: var(--primary-hover);
    text-decoration: underline !important;
}

.team-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.clear-filters-btn {
    margin-left: auto;
}

.navbar-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.status-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.status-draft {
    background-color: #e9ecef;
    color: #495057;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.team-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.team-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.team-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 150px;
}

.info-value {
    color: #212529;
}

.members-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.member-card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.member-details {
    font-size: 1rem;
}

.member-order {
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.actions-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.back-link {
    margin-bottom: 20px;
    display: inline-block;
}

.rejection-reason {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #721c24;
}


.chat-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.message-body {
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}


.messages-list {
    /*max-height: 500px;*/
    /*overflow-y: auto;*/
    border-radius: 0.5rem;
}

.message-item {
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #007bff;
    background-color: white;
}

.message-item.admin-message {
    border-left-color: #28a745;
    background-color: #f0f8f5;
}

.message-header {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.status-open {
    background-color: #3b9326;
    color: #ffffff;
}

.status-in_progress {
    background-color: #fff3cd;
    color: #856404;
}

.status-closed {
    background-color: #b3b3b3;
    color: #ffffff;
}


.notifications-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
    text-align: center;
}

.notifications-container .alert {
    pointer-events: auto;
    font-weight: 500;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    min-width: 300px;
    max-width: 600px;
    text-align: center; /* оставляем center для центрирования текста */
    padding: 0.75rem 1.5rem; /* равномерные отступы */
}

.notifications-container .alert-success .btn-close {
    display: none;
}

/* В style.css */
.notifications-container .alert-success {
    background-color: #28a745; /* или другой зеленый */
    color: #ffffff;
    border: none;
    border-radius: 12px; /* вместо стандартных 4-6px */
}

.notifications-container .alert-error,
.notifications-container .alert-danger {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 12px;
}

.notifications-container .alert-warning {
    background-color: #ffc107;
    color: #000000; /* или #212529 для лучшей читаемости */
    border: none;
    border-radius: 12px;
}

.notifications-container .alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.notifications-container .alert .btn-close:hover {
    opacity: 1;
}