@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-accent: #06b6d4;
    /* Cyan */
    --secondary-accent: #8b5cf6;
    /* Purple */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 700;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.logo-juris {
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-procuracao {
    font-weight: 300;
    color: var(--text-muted);
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

/* --- Layout --- */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

/* Utilities for icons */
.fa-id-card {
    color: #f472b6;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.4);
}

.fa-map-location-dot {
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- Input Column --- */
.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    /* Ensure consistent height */
    gap: 15px;
    /* Consistent spacing between icon and text */
}

.upload-zone:hover {
    border-color: var(--primary-accent);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    /* Fixed larger size */
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
    /* Better glow */
    margin: 0;
    /* Remove margin, handled by gap */
}

.file-name {
    margin-top: 5px;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    display: none;
    /* Hide empty div by default if needed, JS will show text */
}

.file-name:not(:empty) {
    display: inline-block;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dark-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.dark-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.checkbox-wrapper input {
    accent-color: var(--primary-accent);
    width: 18px;
    height: 18px;
}

/* --- Result Column --- */
.result-column {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-status-display {
    text-align: center;
    margin-bottom: 40px;
}

.status-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary-accent);
    margin: 0 auto 20px;
    animation: spin 2s linear infinite;
    display: none;
    /* Hidden by default */
}

.status-ring.active {
    display: block;
}

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

.result-status-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-subtext {
    color: var(--text-muted);
}

.action-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    text-align: center;
}

.btn-ai {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --- AI Highlight Box for Edits --- */
.ai-highlight-box {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.ai-highlight-title {
    color: var(--primary-accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- Utilities & Refinements --- */
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-sm { font-size: 0.8rem; }
.font-md { font-size: 0.9rem; }
.font-bold { font-weight: 700; }
.block { display: block; }
.check-wrapper-clean { margin-top: 10px; background: transparent; border: none; padding: 0; }

.border-top-glass { border-top: 1px solid var(--glass-border); }

.icon-lg { font-size: 2rem; }
.opacity-60 { opacity: 0.6; }

/* Enhanced Drag & Drop Feedback */
.upload-zone.drag-over {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1); /* Greenish tint */
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.upload-zone.drag-over .upload-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}