/* ========================================
   PARTICIPANTS PAGE STYLES
   ======================================== */

.page-hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 40px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 61, 92, 0.3) 0%, transparent 70%);
}

.hero-content-wrapper h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #29abe2, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: #b3e5fc;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* --- Controls Bar --- */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 25px;
    background: rgba(0, 61, 92, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(41, 171, 226, 0.2);
    backdrop-filter: blur(5px);
}

.stats {
    color: #fff;
    font-weight: bold;
}

.highlight {
    color: #29abe2;
    font-size: 1.2rem;
    margin-left: 5px;
}

.refresh-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #b3e5fc;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.refresh-button:hover {
    background: rgba(41, 171, 226, 0.2);
    color: #fff;
    border-color: #29abe2;
}

/* --- Grid --- */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    min-height: 200px;
}

/* --- Team Card --- */
.team-card {
    background: linear-gradient(145deg, rgba(10, 14, 39, 0.8) 0%, rgba(0, 40, 70, 0.8) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 191, 0.3);
    border-color: rgba(41, 171, 226, 0.4);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #007bbf, #29abe2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(41, 171, 226, 0.2);
}

.team-card h3 {
    color: #29abe2;
    margin: 0 0 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.crew-info {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.crew-role {
    font-size: 0.75rem;
    color: #8faac2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.crew-name {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
}

/* Loading & Empty States */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    color: #b3e5fc;
    padding: 60px;
    font-size: 1.2rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #b3e5fc;
    font-size: 1.2rem;
    background: rgba(0, 61, 92, 0.2);
    border-radius: 15px;
    border: 2px dashed rgba(41, 171, 226, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .participants-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Tlačítka akcí na kartě --- */
.card-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.btn-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-edit {
    color: #ffd700; /* Zlatá */
    border-color: rgba(255, 215, 0, 0.3);
}

.btn-edit:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.btn-delete {
    color: #ff6b6b; /* Červená */
    border-color: rgba(255, 107, 107, 0.3);
}

.btn-delete:hover {
    background: rgba(255, 107, 107, 0.1);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
}

/* --- MODAL (Vyskakovací okno) --- */
.modal {
    display: none; /* Skryté ve výchozím stavu */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #0a0e27 0%, #00284a 100%);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(41, 171, 226, 0.4);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 123, 191, 0.3);
}

.modal-content h3 {
    color: #29abe2;
    margin-top: 0;
}

.modal-content p {
    color: #b3e5fc;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid rgba(41, 171, 226, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.modal-btn:hover {
    transform: scale(1.05);
}

.modal-btn.confirm {
    background: linear-gradient(90deg, #ff6b6b, #e056fd);
    color: white;
}

.modal-btn.cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ccc;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover { color: #fff; }
.modal-message { margin-top: 15px; font-weight: bold; min-height: 20px; }