/* Plik: team-modal.css (Wersja z poprawkami przycisków) */

/* 1. TŁO ZA MODALEM (BACKDROP) */
.modal {
    background: rgba(10, 20, 30, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 2. GŁÓWNY PANEL MODALA */
#teamRegistrationModal .modal-content {
    background: rgba(18, 38, 62, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 90%;
}

/* 3. NAGŁÓWEK MODALA */
#teamRegistrationModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    justify-content: center; 
}

#teamRegistrationModal .modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    color: #ffffff;
}

/* 4. TREŚĆ MODALA (FORMULARZ) */
#teamRegistrationModal .modal-body {
    padding: 20px;
}

#teamRegistrationModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
}

.add-participant-form {
    display: block;
    margin-bottom: 15px;
}

.add-participant-form input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
}

.add-button-container {
    text-align: right;
    margin-top: 5px;
}

.add-participant-form #addParticipantBtn {
    background-image: url('./assets/button-add-member.svg');
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border: none;
    outline: none;
    width: 220px;
    height: 60px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Resetowanie starych właściwości */
    animation: none;
    opacity: 1;
    transform: none;
    min-width: unset;
    border-radius: 0;
    display: table-row;
}

.add-participant-form #addParticipantBtn:hover {
    opacity: 0.9; /* Delikatny efekt po najechaniu */
    background-color: transparent;
}

.add-participant-form #addParticipantBtn span {
    font-family: "Luckiest Guy", serif;
    font-size: 20px;
    font-weight: 400;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

#participantsList {
    display: none;
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
    max-height: 140px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 5px;
}

#participantsList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

#teamRegistrationModal input[type="text"] {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    box-sizing: border-box;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: left;
}

/* 5. STOPKA MODALA I PRZYCISKI (Z POPRAWKAMI) */
.team-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    background: none;
    /* POPRAWKA: Ułożenie obok siebie i wyśrodkowanie */
    display: flex;
    justify-content: center; /* Wyśrodkowanie przycisków w poziomie */
    align-items: center;    /* Wyrównanie w pionie */
    gap: 20px;
    flex-wrap: wrap;
}

.team-modal-footer .button {
    margin-top: 0;
    width: 220px; /* Nieznacznie zwiększona szerokość dla spójności */
    height: 60px;
    /* POPRAWKA: Ustawienie jednolitego rozmiaru czcionki */
    font-size: 22px;
    border: none;
    outline: none;
    background-color: transparent;
}

.team-modal-footer .button span {
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    /* POPRAWKA: Dodanie koloru białego */
    color: white; 
}

#confirmTeamRegistrationBtn {
    width: 360px;
    height: 78px;
}