* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* FUNDO DE GRAMADO */
    background-image: url('foto_fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(135deg, rgba(31, 119, 180, 0.35) 0%, rgba(42, 159, 214, 0.35) 100%);
    backdrop-filter: blur(15px);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background: rgba(255, 255, 255, 0.65); /* Branco semi-transparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    /*background: white;*/
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
}

.login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: #f44336;
    color: white;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
    width: 100%;
    max-width: 500px;
}

.error-message {
    color: #f44336;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.info-box {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #2196F3;
}

.info-box h3 {
    color: #333;
    margin-bottom: 15px;
}

.prazo-item {
    padding: 8px 0;
    font-size: 0.95rem;
}

.prazo-aberto {
    color: #4CAF50;
}

.prazo-encerrado {
    color: #f44336;
}

.help-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.user-welcome {
    background: rgba(232, 245, 233, 0.75);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.loading {
    text-align: center;
    padding: 50px;
    color: white;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fase-section {
    background: rgba(255, 255, 255, 0.65); /* Branco semi-transparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    /*background: white;*/
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.fase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4CAF50;
}

.fase-title {
    font-size: 2rem;
    color: #333;
}

.fase-prazo {
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
}

.fase-prazo.aberta {
    background: #e8f5e9;
    color: #4CAF50;
}

.fase-prazo.encerrada {
    background: #ffebee;
    color: #f44336;
}

.fase-bloqueada {
    background: #ffebee;
    border: 2px solid #ef5350;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #d32f2f;
    text-align: center;
}

.grupo-subtitle {
    font-size: 1.5rem;
    color: #555;
    margin: 20px 0 15px 0;
}

.jogo-card {
    background: rgba(255, 255, 255, 0.10); /* Branco semi-transparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    /*background: #f0f2f6;*/
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.jogo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #4CAF50;
}

.jogo-content {
    display: grid;
    grid-template-columns: 2fr 1fr 0.5fr 1fr 2fr;
    align-items: center;
    gap: 15px;
}

.time {
    text-align: center;
}

.time h3 {
    color: #333;
    font-size: 1.2rem;
}

.gols-input {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-weight: bold;
    background: white;
    transition: all 0.3s;
}

.gols-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.gols-display {
    padding: 15px;
    background: #e0e0e0;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.vs {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
}

.submit-container {
    text-align: center;
    margin: 40px 0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 30px;
    color: white;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .jogo-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .vs {
        font-size: 1.5rem;
    }
}

/* Barra de Progresso */
.progress-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.progress-info {
    text-align: center;
    margin-bottom: 20px;
}

.progress-info p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

.progress-details {
    font-size: 0.9rem;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 15px;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.progress-percentage {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    color: #333;
}


.ranking-link-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ranking-link-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.ranking-link-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-ranking {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-ranking:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

.btn-ranking:active {
    transform: translateY(0);
}

.ranking-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .ranking-link-section {
        padding: 30px 20px;
    }
    
    .ranking-link-section h3 {
        font-size: 1.5rem;
    }
    
    .btn-ranking {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
}
