/* --- 1. Reset Básico e Fontes --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* --- 2. Layout Principal --- */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0;
}

.site-header {
    text-align: center;
    margin-bottom: 25px;
}
.site-header h1 {
    font-size: 2.2em;
    color: #1a3c5a;
    margin: 0 0 5px 0;
}
.site-header p {
    font-size: 1.1em;
    color: #555;
    margin: 0;
}

/* --- 3. "Cards" (as seções) --- */
.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    margin-bottom: 25px;
}
/* ... (o resto do card h2, p é o mesmo) ... */
.card h2 {
    color: #0056b3;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.5em;
}

.card p {
    font-size: 1em;
    color: #444;
}


/* --- 4. Formulário de Upload --- */
.upload-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.upload-section label {
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
}

.upload-section input[type="file"],
.upload-section input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.upload-section input[type="file"]:focus,
.upload-section input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
    outline: none;
}

/* --- 5. Botões (Estilo Unificado) --- */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    text-align: center;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    opacity: 0.9;
}
.btn-primary { 
    background-color: #007bff;
    color: #ffffff;
}
.btn-download { 
    background-color: #28a745;
    color: #ffffff;
}
.btn-copy { 
    background-color: #17a2b8;
    color: #ffffff;
}
.btn-copy.copied {
    background-color: #6c757d;
}
.btn-downloader {
    background-color: #e67e22;
    color: #ffffff;
    margin-bottom: 5px;
}
.btn-grey {
    background-color: #6c757d;
    color: #ffffff;
}
.btn-block {
    width: 100%;
    font-size: 1.1em;
}

.downloader-info {
    font-size: 0.9em;
    color: #555;
    margin-top: 0;
    margin-bottom: 25px;
    padding: 8px 12px;
    background-color: #fdf5e6;
    border-left: 4px solid #e67e22;
    border-radius: 4px;
}
.content-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* --- 6. Notificações (Toast) --- */
#toast-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Para o caso de movermos para um canto fixo no futuro */
    width: 100%; 
}

.status-msg {
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 0; /* Removido, pois o gap do container cuida */
    border: 1px solid transparent;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, margin-top 0.5s ease-out, padding 0.5s ease-out, height 0.5s ease-out;
}
.status-msg.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.status-msg.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.status-msg.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    border: 0;
}

/* --- 7. Lista de Arquivos --- */
#file-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
#file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 15px;
}
#file-list li:last-child {
    border-bottom: none;
}
.empty-list {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
    justify-content: center;
}
.file-info {
    display: flex;
    flex-direction: column;
    min-width: 0; 
    flex-grow: 1;
}
.file-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-size {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 4px;
}
.file-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* --- 8. Estilos do Modal (Alert Personalizado) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-content {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-content h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #333;
}
.modal-content p {
    font-size: 1em;
    color: #555;
    margin-bottom: 25px;
}
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- 9. Responsividade --- */
@media (max-width: 600px) {
    body { padding: 10px; }
    .container { margin: 0 auto; }
    .card { padding: 20px; }
    #file-list li { flex-direction: column; align-items: flex-start; }
    .file-actions { width: 100%; }
    .file-actions .btn { flex-grow: 1; }
}