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

/* BODY */
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f3f4f6;
    padding: 25px;
    color: #333;
}

/* CONTAINER PRINCIPAL */
.container {
    max-width: 1250px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.08);
}

/* HEADER */
header {
    text-align: center;
    margin-bottom: 35px;
}

h1 {
    font-size: 2.6em;
    font-weight: 700;
    color: #1f2937;
}

.subtitle {
    margin-top: 5px;
    font-size: 1.1em;
    color: #6b7280;
}

/* LINKS DO MENU */
nav a {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    transition: 0.25s;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0px 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-success {
    background: #10b981;
    color: white;
    transition: 0.25s;
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0px 4px 15px rgba(16, 185, 129, 0.35);
}

/* CARDS DE SEÇÕES */
.upload-section,
.processing-section,
.results-section {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0px 4px 25px rgba(0,0,0,0.06);
    margin-bottom: 35px;
    border: 1px solid #e5e7eb;
}

/* INPUT DE ARQUIVO */
.file-input-wrapper {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

#fileInput {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    font-size: 1em;
}

/* BOTÕES */
.btn {
    padding: 12px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* STATUS */
.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
}

/* TIPOS DE ALERTAS */
.status-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* PROGRESS BAR */
.progress-container {
    margin-top: 25px;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    background: #3b82f6;
    width: 0%;
    height: 100%;
    transition: width 0.3s;
}

#progressText {
    margin-top: 10px;
    font-weight: 600;
    color: #374151;
}

/* CURRENT URL */
.current-url {
    margin-top: 10px;
    color: #6b7280;
    font-size: 0.9em;
}

/* TABELA DE RESULTADOS */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
}

thead {
    background: #3b82f6;
    color: white;
}

th {
    padding: 14px;
    text-align: left;
    font-size: 0.95em;
}

td {
    padding: 14px;
    border-bottom: 1px solid #f3f4f6;
}

tbody tr:hover {
    background: #f9fafb;
}

.url-cell a {
    color: #3b82f6;
    text-decoration: none;
}

.url-cell a:hover {
    text-decoration: underline;
}

/* STATUS */
.status-success {
    color: #10b981;
    font-weight: 600;
}

.status-error {
    color: #ef4444;
    font-weight: 600;
}

/* SPINNER */
.spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 4px solid #dbeafe;
    border-top-color: #3b82f6;
    animation: spin 0.8s linear infinite;
}

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

/* CARD DO PROCESSAMENTO */
.processing-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #eff6ff;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .file-input-wrapper {
        flex-direction: column;
    }

    #fileInput {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}
