@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ===============================================
   CIDADE LIMPA - CSS PRINCIPAL
   Sistema de Denúncias Urbanas
   =============================================== */

/* ===============================================
   1. VARIÁVEIS E RESET
   =============================================== */
:root {
    /* Cores Principais */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #06b6d4;
    
    /* Cores de Status */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Cores Neutras */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    
    /* Textos */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transições */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Navbar Height */
    --navbar-height: 70px;
}

/* Tema Escuro */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
    --gray-900: #f8fafc;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===============================================
   2. COMPONENTES UTILITÁRIOS
   =============================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

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

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

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

.btn-white:hover {
    background: var(--gray-100);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===============================================
   3. NAVBAR
   =============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo i {
    font-size: 1.75rem;
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

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

.btn-nav:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.btn-nav-outline {
    border: 2px solid var(--danger);
    color: var(--danger) !important;
}

.btn-nav-outline:hover {
    background: var(--danger);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.theme-toggle {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--gray-200);
    color: var(--primary);
}

/* ===============================================
   4. HERO SECTION
   =============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + 2rem) 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-img {
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===============================================
   5. STATS SECTION
   =============================================== */
.stats {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===============================================
   6. CATEGORIES SECTION
   =============================================== */
.categories {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===============================================
   7. HOW IT WORKS SECTION
   =============================================== */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 0;
}

.step-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    font-size: 1.75rem;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===============================================
   8. RECENT COMPLAINTS SECTION
   =============================================== */
.recent-complaints {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.complaints-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.complaint-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.complaint-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.complaint-image {
    height: 180px;
    background: var(--gray-200);
    overflow: hidden;
}

.complaint-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.complaint-card:hover .complaint-image img {
    transform: scale(1.05);
}

.complaint-content {
    padding: 1.5rem;
}

.complaint-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.complaint-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.complaint-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.complaint-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.complaint-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.complaint-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pendente {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-em-analise {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.status-resolvido {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.no-complaints {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-complaints i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===============================================
   9. CTA SECTION
   =============================================== */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===============================================
   10. FOOTER
   =============================================== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 0;
}

[data-theme="dark"] .footer {
    background: #0a0f1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h3 i {
    color: var(--secondary);
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-col p {
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-400);
}

.contact-info li i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===============================================
   11. FORMULÁRIOS
   =============================================== */
.form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + 2rem) 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.form-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
}

.form-card.wide {
    max-width: 700px;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Upload de Imagem */
.image-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.image-upload:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.image-upload i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.image-upload p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.image-upload span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.image-preview {
    margin-top: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    display: none;
}

.image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.image-preview.active {
    display: block;
}

/* ===============================================
   12. DASHBOARD / PAINEL
   =============================================== */
.dashboard {
    padding: calc(var(--navbar-height) + 2rem) 1.5rem 2rem;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    font-size: 2rem;
    color: var(--text-primary);
}

.dashboard-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.dashboard-card-icon.blue {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.dashboard-card-icon.green {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

.dashboard-card-icon.yellow {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.dashboard-card-icon.red {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.dashboard-card-info h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-card-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Filtros */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Tabela */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.table-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.complaints-table {
    width: 100%;
    border-collapse: collapse;
}

.complaints-table th,
.complaints-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.complaints-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.complaints-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
}

.complaints-table tbody tr:hover {
    background: var(--bg-secondary);
}

.complaints-table td {
    color: var(--text-primary);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon.view {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.btn-icon.view:hover {
    background: var(--info);
    color: var(--white);
}

.btn-icon.edit {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.btn-icon.edit:hover {
    background: var(--warning);
    color: var(--white);
}

.btn-icon.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn-icon.delete:hover {
    background: var(--danger);
    color: var(--white);
}

/* Paginação */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===============================================
   13. CARDS DE DENÚNCIA (Minhas Denúncias)
   =============================================== */
.my-complaints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.my-complaint-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.my-complaint-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.my-complaint-image {
    height: 200px;
    background: var(--gray-200);
    overflow: hidden;
    position: relative;
}

.my-complaint-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-complaint-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.my-complaint-content {
    padding: 1.5rem;
}

.my-complaint-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.my-complaint-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.my-complaint-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-complaint-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.my-complaint-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.my-complaint-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ===============================================
   14. PÁGINA DE DETALHES
   =============================================== */
.details-page {
    padding: calc(var(--navbar-height) + 2rem) 1.5rem 2rem;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.details-container {
    max-width: 900px;
    margin: 0 auto;
}

.details-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.details-image {
    height: 400px;
    background: var(--gray-200);
    position: relative;
}

.details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.details-content {
    padding: 2rem;
}

.details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.details-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.details-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.details-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.details-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.details-info-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.details-info-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.details-info-item strong {
    display: block;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.details-description {
    margin-bottom: 2rem;
}

.details-description h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.details-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.details-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Status Badge Grande */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.pendente {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.em-analise {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.status-badge.resolvido {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

/* ===============================================
   15. PÁGINA SOBRE
   =============================================== */
.about-page {
    padding: calc(var(--navbar-height) + 3rem) 1.5rem 3rem;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-hero h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-hero h1 i {
    color: var(--primary);
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.about-card h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-card h2 i {
    color: var(--primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-card ul {
    list-style: none;
}

.about-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-card ul li i {
    color: var(--success);
    margin-top: 0.25rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.team-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: var(--white);
}

.team-card h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===============================================
   16. MODAL
   =============================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: none;
    background: var(--gray-100);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ===============================================
   17. ALERTAS E NOTIFICAÇÕES
   =============================================== */
.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

.alert i {
    font-size: 1.25rem;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + 1rem);
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: toastSlide 0.3s ease;
    min-width: 300px;
}

@keyframes toastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }

.toast-message {
    flex: 1;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

/* ===============================================
   17. CHATBOT DE AJUDA
   =============================================== */
.chatbot-toggle {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 1500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
}

.chatbot-panel {
    position: fixed;
    right: 1.5rem;
    bottom: 4.25rem;
    width: 360px;
    max-width: calc(100% - 2rem);
    background: var(--bg-card);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(148, 163, 184, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1400;
}

.chatbot-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.chatbot-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
}

.chatbot-header p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.chatbot-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
}

.chatbot-body {
    padding: 1rem;
}

.chatbot-messages {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.chatbot-message {
    max-width: 85%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    line-height: 1.4;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.chatbot-message.bot {
    align-self: flex-start;
    background: var(--gray-100);
    color: var(--text-primary);
}

[data-theme="dark"] .chatbot-message.bot {
    background: var(--gray-700);
}

.chatbot-message.user {
    align-self: flex-end;
    background: var(--primary);
    color: var(--white);
}

.chatbot-input-group {
    display: flex;
    gap: 0.5rem;
}

.chatbot-input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-primary);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chatbot-send {
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 0 1rem;
    cursor: pointer;
}

.chatbot-send:hover {
    opacity: 0.95;
}

/* ===============================================
   18. ANIMAÇÕES
   =============================================== */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===============================================
   19. RESPONSIVIDADE
   =============================================== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--navbar-height) + 3rem);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-img {
        max-width: 400px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .complaints-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .theme-toggle {
        position: absolute;
        right: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .complaints-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .complaints-table {
        min-width: 700px;
    }
    
    .my-complaints-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .details-image {
        height: 250px;
    }
    
    .details-title {
        font-size: 1.5rem;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modal {
        margin: 1rem;
    }
}

/* ===============================================
   20. UTILITÁRIOS EXTRAS
   =============================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ===============================================
   21. DIREÇÃO VISUAL PALMEIRAIS
   =============================================== */
:root {
    --primary: #155e75;
    --primary-dark: #0e3f52;
    --primary-light: #2f8ca3;
    --secondary: #e26d4f;
    --secondary-dark: #b84b35;
    --accent: #f2b84b;
    --bg-primary: #fbfaf7;
    --bg-secondary: #eef4f2;
    --bg-card: #ffffff;
    --text-primary: #17343b;
    --text-secondary: #577077;
    --text-muted: #8da0a3;
    --shadow: 0 8px 24px rgba(23, 52, 59, 0.08);
    --shadow-lg: 0 18px 44px rgba(23, 52, 59, 0.13);
    --radius: 0.7rem;
    --radius-lg: 1.15rem;
    --radius-xl: 1.5rem;
}

[data-theme="dark"] {
    --bg-primary: #102a30;
    --bg-secondary: #173b42;
    --bg-card: #1a4147;
    --text-primary: #f3f7f4;
    --text-secondary: #c1d1ce;
    --text-muted: #8eaaa9;
    --primary: #7bc4c0;
    --primary-dark: #4aa09f;
    --secondary: #f08a68;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-primary);
    letter-spacing: 0;
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0;
}

.navbar {
    background: rgba(251, 250, 247, 0.92);
    border-bottom: 1px solid rgba(21, 94, 117, 0.09);
    box-shadow: 0 3px 18px rgba(23, 52, 59, 0.06);
}

.nav-logo {
    color: var(--primary);
    font-size: 1.25rem;
}

.nav-logo i, .nav-link:hover, .nav-link.active, .theme-toggle:hover {
    color: var(--secondary);
}

.hero {
    min-height: 78vh;
    justify-content: flex-start;
    padding: calc(var(--navbar-height) + 5rem) max(1.5rem, calc((100vw - 1200px) / 2)) 5rem;
    background: var(--primary-dark);
    color: #fff;
}

.hero::before {
    background: radial-gradient(circle at 82% 25%, rgba(242, 184, 75, 0.28), transparent 22%),
        radial-gradient(circle at 10% 85%, rgba(47, 140, 163, 0.32), transparent 26%);
}

.hero::after {
    content: '';
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -12rem;
    bottom: -18rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.04), 0 0 0 7rem rgba(255, 255, 255, 0.025);
}

.hero-content {
    max-width: 690px;
    text-align: left;
}

.hero-title {
    max-width: 680px;
    font-size: clamp(2.7rem, 6vw, 5.25rem);
    color: #fff;
    line-height: 1.02;
    margin-bottom: 1.25rem;
}

.hero-title i { color: var(--accent); }

.hero-subtitle {
    max-width: 580px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-buttons { justify-content: flex-start; }

.btn-primary {
    background: var(--secondary);
    box-shadow: 0 8px 20px rgba(226, 109, 79, 0.28);
}

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

.btn-outline {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn-outline:hover { background: #fff; color: var(--primary-dark); }

.stats { background: var(--bg-secondary); padding: 3.5rem 0; }

.stat-card, .category-card, .step-card, .form-card {
    border: 1px solid rgba(21, 94, 117, 0.09);
    box-shadow: var(--shadow);
}

.stat-card:hover, .category-card:hover { box-shadow: var(--shadow-lg); }

.stat-icon, .section-title i, .form-header i { color: var(--secondary); }

.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.section-subtitle { max-width: 620px; margin-left: auto; margin-right: auto; }

.category-card { border-radius: var(--radius); text-align: left; }

.category-icon { width: 58px; height: 58px; border-radius: 0.8rem; margin: 0 0 1.25rem; }

.form-container {
    background: var(--bg-secondary);
    background-image: radial-gradient(circle at 15% 20%, rgba(21, 94, 117, 0.1), transparent 23%),
        radial-gradient(circle at 85% 80%, rgba(226, 109, 79, 0.1), transparent 20%);
}

.form-card { border-radius: var(--radius-lg); }

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 117, 0.12);
}

.auth-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.auth-note i { color: var(--primary); }

.alert-error { border-left: 4px solid var(--danger); }

@media (max-width: 768px) {
    .hero { min-height: 82vh; padding-top: calc(var(--navbar-height) + 3rem); }
    .hero-content { text-align: left; }
    .hero-buttons { justify-content: flex-start; }
}
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(15, 23, 42, 0.9);
}
