/**
 * SINAPLEX - Estilos Principais
 * Bureau de Serviços Jurídicos
 */

/* ========================================
   VARIÁVEIS CSS
======================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #2563eb 0%, #0f172a 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* ========================================
   NAVBAR
======================================== */
#mainNavbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

#mainNavbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    background: transparent !important;
    mix-blend-mode: normal;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero-pattern.svg') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
}

.hero-image {
    position: relative;
    z-index: 2;
    transform: translateY(80px);
}

.hero-image img {
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.3));
}

/* ========================================
   SEÇÕES
======================================== */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

/* ========================================
   CARDS DE FEATURES
======================================== */
.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.3);
    border-color: #ffcc80;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========================================
   PRICING
======================================== */
.pricing-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
}

.pricing-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.pricing-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0.75rem 0;
}

.pricing-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.pricing-features li {
    padding: 0.25rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.pricing-features li i {
    color: var(--success-color);
    margin-right: 0.4rem;
}

#pricing .row {
    flex-wrap: nowrap;
    overflow-x: auto;
}

#pricing .col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 220px;
}

@media (max-width: 991.98px) {
    #pricing .row {
        flex-wrap: nowrap;
    }
    
    #pricing .col-xl-3 {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

/* ========================================
   BOTÕES
======================================== */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

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

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* ========================================
   FORMULÁRIOS
======================================== */
.form-control, .form-select {
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

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

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* ========================================
   CARDS DE AUTH
======================================== */
.auth-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-card .text-muted {
    margin-bottom: 2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* ========================================
   DASHBOARD
======================================== */
.dashboard-sidebar {
    background: var(--secondary-color);
    min-height: 100vh;
    padding: 1.5rem;
    padding-top: 100px;
    position: fixed;
    width: 260px;
    left: 0;
    top: 0;
}

.dashboard-content {
    margin-left: 260px;
    padding: 2rem;
    background: var(--bg-light);
    min-height: 100vh;
}

.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   BADGES DE STATUS
======================================== */
.badge-license {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-license.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

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

.badge-license.expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--secondary-color);
}

.footer a:hover {
    color: var(--accent-color) !important;
}

/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .dashboard-content {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
}

/* ========================================
   ANIMAÇÕES
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========================================
   UTILITÁRIOS
======================================== */
.bg-gradient-primary {
    background: var(--bg-gradient);
}

.text-gradient {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rounded-xl {
    border-radius: var(--border-radius);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

