/* Container da imagem */
#previewContainer {
    width: 100%;
    height: 230px;
    background-size: cover;
    background-position: center;   
    background-repeat: no-repeat;
    position: relative;
    margin-top: 10px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f8f9fa;
}

#previewContainer:hover {
    border-color: #007bff;
    background-color: rgba(0,123,255,0.05);
}

#previewContainer:active {
    transform: scale(0.99);
}

#previewContainer img.preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Estilos para as colunas */
.modal-body .col-md-6 {
    padding: 10px;
}

/* Seção de upload */
.upload-section {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.upload-section h5 {
    color: #333;
    margin-bottom: 5px;
    text-align: center;
    font-size: 0.9rem;
}

/* Ajustes para informações */
.informacoes {
    margin-bottom: 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    flex: 0 1 auto;
    min-width: 180px;
}

.informacoes h5 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.informacoes h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

.informacoes i {
    margin-right: 8px;
    color: #007bff;
}

.informacoes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #fff;
}

/* Mantendo os estilos existentes */
#previewContainer.dragover {
    border-color: #007bff;
    background-color: rgba(0,123,255,0.1);
}

#previewContainer.has-image {
    border: none;
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
}

#previewContainer.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #28a745;
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

/* Área de upload */
.upload-area {
    text-align: center;
    padding: 20px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 8px;
}

.upload-area p {
    margin: 8px 0;
    color: #666;
    font-size: 1rem;
}

#previewContainer.has-image .upload-area {
    display: none;
}

/* Barra de progresso */
#uploadProgress {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin-top: 10px;
    display: none;
}

#uploadProgress .progress-bar {
    height: 100%;
    background-color: #007bff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Botões */
.upload-buttons {
    display: none;
}

.upload-area i {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

#previewContainer:hover .upload-area i {
    transform: translateY(-5px);
}

/* Marca d'água (logo sobre a imagem) */
.watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    opacity: 0.6;
    pointer-events: none;
}

/* Container para as informações */
.info-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    gap: 20px;
}

/* Botão de Impressão */
.botao-impressao-container {
    text-align: center;
    width: 100%;
    padding: 10px 0 25px 0;
}

.botaoImpressao {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: auto;
    min-width: 250px;
    background-color:rgb(169, 2, 2);
    border: none;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    border-radius: 5px;
}

.botaoImpressao:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color:rgb(190, 7, 7);    
}

.botaoImpressao:active {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.botaoImpressao i {
    margin-right: 10px;
    font-size: 1.2em;
    display: inline-block;
    vertical-align: middle;
}

.modal-dialog.modal-lg {
    max-height: 98vh;
    margin: 10px auto;
    display: flex;
    align-items: flex-start;
    width: 95%;
}

.modal-content {
    max-height: 98vh;
    overflow: hidden;
    margin-top: 0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.btn-close {
    font-size: 12px;
    color: #333;
    opacity: 1;
    padding: 0 5px;
    position: absolute;
    right: 15px;
    top: 10px;
}

.modal-body {
    padding: 5px 15px 0 15px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.row {
    flex: 1;
    margin: 0;
}

.upload-section {
    padding: 10px;
    margin-bottom: 0;
}

.info-container {
    padding: 5px 0;
    margin-bottom: 10px;
}

/* Ajustes de espaçamento */
.col-md-6 {
    display: flex;
    flex-direction: column;
}

.col-12 {
    margin: 0;
    padding: 5px 0;
}

div[style="padding-bottom:30px"] {
    display: none;
}

.upload-area .text-muted {
    font-size: 0.8rem;
}

.placaPeito {
    color: #666;
    font-size: 0.95rem;
    display: block;
    margin-top: 5px;
}

.nomeAtleta {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-left: -20px;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.colocacao-nome {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
}

.colocacao-principal {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    font-size:20px;
}

.separador {
    color: #666;
    font-size: 1.2rem;
    margin: 0 5px;
}

.posicao {
    margin-left: -5px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Info Row e Box */
.info-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.info-box {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-dialog.modal-lg {
        width: 98%;
        margin: 5px auto;
        max-height: none;
    }

    .modal-content {
        border-radius: 8px;
        max-height: none;
        overflow: visible;
    }

    .modal-body {
        padding: 10px;
        overflow: visible;
        display: block;
    }

    .row {
        display: block;
        margin: 0;
    }

    .col-md-6 {
        width: 100%;
        padding: 5px;
    }

    .upload-section {
        margin-top: 20px;
    }

    .info-container {
        flex-direction: column;
    }
    
    .informacoes {
        width: 100%;
        margin-bottom: 10px;
    }

    #previewContainer {
        height: 200px;
    }
    
    #previewContainer img.preview {
        width: 100%;
        height: 100%;
    }

    .colocacao-nome {
        margin: 5px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .colocacao-principal {
        font-size: 18px;
        display: inline-block;
    }

    .posicao {
        font-size: 18px;
        margin-left: 0;
        display: inline-block;
    }

    .nomeAtleta {
        font-size: 18px;
        margin-left: 5px;
        display: inline-block;
    }

    .placaPeito {
        font-size: 0.85rem;
        margin: 5px;
        display: block;
    }

    .info-container {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 10px 5px;
        margin: 0;
    }

    .informacoes {
        flex: 1;
        min-width: auto;
        margin: 0;
        padding: 10px;
    }

    [style*="text-align:center;font-size:50px"] {
        font-size: 25px !important;
        padding: 10px 0 !important;
        display: block !important;
    }

    #tempo-prova {
        display: inline-block;
        font-size: 25px !important;
    }

    .upload-section {
        margin: 10px 0;
    }

    .botao-impressao-container {
        padding: 10px;
    }

    .botaoImpressao {
        width: 100%;
        max-width: 300px;
    }

    .info-row {
        flex-direction: column;
        margin-top: 20px;
        gap: 10px;
    }

    .info-box {
        padding: 15px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 380px) {
    .modal-body {
        padding: 5px;
    }

    .info-container {
        padding: 5px 0;
    }

    .informacoes {
        padding: 8px;
    }

    .informacoes h5 {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .informacoes h4 {
        font-size: 0.9rem;
    }

    [style*="text-align:center;font-size:50px"] {
        font-size: 20px !important;
    }

    #tempo-prova {
        font-size: 20px !important;
    }

    #previewContainer {
        height: 180px;
    }
    
    #previewContainer img.preview {
        width: 100%;
        height: 100%;
    }
}

/* Ajustes para o tempo de prova */
.tempo-prova-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 80px;
    margin-bottom: 40px;
}

.tempo-prova-wrapper {
    text-align: center;
    color: var(--dark--200);
}

/* Ajustes responsivos para o tempo de prova */
@media (max-width: 768px) {
    .tempo-prova-container {
        margin-top: 40px;
        margin-bottom: 20px;
    }
} 