/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Фон с одним случайным изображением при входе */
.body-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.body-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.85));
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Шапка с полупрозрачным фоном как у body */
.header {
    background: 
        linear-gradient(rgba(44, 62, 80, 0.85), rgba(52, 73, 94, 0.85)),
        var(--header-bg-image);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-size: 2.3em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.list-title {
    font-size: 1.3em;
    color: #ecf0f1;
    margin-top: 5px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Навигация по сайту */
.site-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
}

.site-nav a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.site-nav a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.admin-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.admin-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Навигация списков */
.lists-nav {
    background: rgba(52, 73, 94, 0.9);
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lists-nav select {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lists-nav select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 1);
}

/* Сетка участников */
.participants-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.column {
    padding: 25px;
}

.column:nth-child(1) {
    background: rgba(248, 249, 250, 0.7);
}

.column:nth-child(2) {
    background: rgba(255, 255, 255, 0.7);
}

/* Карточка участника */
.participant-card {
    display: flex;
    align-items: center;
    padding: 18px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.participant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 1);
}

.participant-card.has-status {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,234,234,0.95));
}

/* Фото участника */
.photo-container {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 18px;
    border: 3px solid #3498db;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.participant-card.has-status .photo-container {
    border-color: #e74c3c;
}

.photo-container:hover {
    border-color: #2980b9;
    transform: scale(1.05);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo {
    width: 35px;
    height: 35px;
    opacity: 0.5;
}

/* Информация об участнике */
.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: bold;
    font-size: 1.15em;
    color: #2c3e50;
    margin-bottom: 6px;
}

.participant-status {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: bold;
}

/* Подвал */
.footer {
    text-align: center;
    padding: 25px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    margin-top: 20px;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-count {
    font-size: 1.1em;
    font-weight: bold;
    color: #3498db;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .participants-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
        margin-top: 10px;
    }
    
    .list-title {
        font-size: 1.1em;
    }
    
    .site-nav {
        position: static;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .admin-link {
        position: static;
        display: block;
        margin: 10px auto;
        width: 140px;
        text-align: center;
    }
    
    .lists-nav select {
        width: 90%;
        margin: 5px 0;
    }
    
    .column {
        padding: 15px;
    }
    
    .participant-card {
        padding: 15px;
    }
    
    .photo-container {
        width: 70px;
        height: 70px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6em;
    }
    
    .participant-card {
        padding: 12px;
    }
    
    .photo-container {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }
    
    .participant-name {
        font-size: 1em;
    }
    
    .site-nav {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .site-nav a {
        width: 120px;
        text-align: center;
    }
}