/* Style dla formularza rejestracji zespołów */

.igrzyska-registration-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1F9347, #2BAF5A);
    color: white;
    border-radius: 10px;
}

.form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.form-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.form-section {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #1F9347;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #1F9347;
    padding-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1F9347;
    box-shadow: 0 0 0 3px rgba(31, 147, 71, 0.1);
}

.form-group input[required] {
    border-left: 4px solid #1F9347;
}

/* Lista uczestników */
.participant-row {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.participant-header h4 {
    margin: 0;
    color: #1F9347;
    font-size: 16px;
}

.remove-participant {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.remove-participant:hover {
    background: #c82333;
}

.participant-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 100px;
    gap: 15px;
    align-items: start;
}

.participant-fields input,
.participant-fields select,
.participant-fields textarea {
    margin: 0;
}

.participant-fields textarea {
    grid-column: 1 / -1;
}

.btn-add {
    background: #1F9347;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-add:hover {
    background: #1A7A3A;
}

/* Konkurencje */
.competitions-list {
    display: grid;
    gap: 20px;
}

.competition-signup {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
}

.competition-signup h4 {
    margin: 0 0 15px 0;
    color: #1F9347;
    font-size: 16px;
}

.participant-selection {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.participant-selection select {
    flex: 1;
    min-width: 200px;
}

/* Przyciski */
.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e5e9;
}

.btn-submit {
    background: linear-gradient(135deg, #1F9347, #2BAF5A);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 147, 71, 0.3);
}

/* Wiadomości */
.igrzyska-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.igrzyska-message.igrzyska-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.igrzyska-message.igrzyska-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.igrzyska-message.igrzyska-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsywność */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .participant-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .participant-selection {
        flex-direction: column;
    }
    
    .participant-selection select {
        min-width: auto;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.igrzyska-registration-form {
    animation: fadeIn 0.6s ease-out;
}

.form-section {
    animation: fadeIn 0.4s ease-out;
}

/* Dodatkowe style dla lepszej czytelności */
.form-group small {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
}

.form-group .required {
    color: #dc3545;
}

/* Style dla statusów */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-registered {
    background: #d1ecf1;
    color: #0c5460;
}

.status-arrived {
    background: #d4edda;
    color: #155724;
}

.status-left {
    background: #f8d7da;
    color: #721c24;
}

.status-planned {
    background: #fff3cd;
    color: #856404;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-finished {
    background: #e2e3e5;
    color: #383d41;
}
