/* ===================================================
   RESET & VARIÁVEIS
   =================================================== */

:root {
    /* Cores */
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-bg: #f9fafb;
    --color-surface: #ffffff;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    /* Espaçamento e Bordas */
    --radius: 8px;
    --container-width: 1100px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ===================================================
   LAYOUT & HEADER
   =================================================== */

.main-header {
    background-color: #12141a;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 40px;
    width: auto;
}

.logo-area h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.main-nav a:hover {
    color: white;
}

/* ===================================================
   HERO & UPLOAD
   =================================================== */

.hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, #12141a 0%, #1f2937 100%);
    color: white;
}

.hero-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto 40px;
}

.upload-area {
    background: white;
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--color-primary);
    background-color: #f5f3ff;
}

.upload-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ===================================================
   DASHBOARD & CARDS
   =================================================== */

.dashboard-section {
    padding: 60px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.quality-score {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 5px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid var(--color-primary);
}

.stat-card.warning { border-color: var(--color-warning); }
.stat-card.danger { border-color: var(--color-danger); }

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================================
   BOTÕES & AÇÕES
   =================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    gap: 10px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-success {
    background-color: var(--color-success);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-border);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.actions-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ===================================================
   RODAPÉ
   =================================================== */

.main-footer {
    background-color: #12141a;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-version {
    text-align: center;
    padding-top: 20px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

/* ===================================================
   RESPONSIVIDADE
   =================================================== */

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
