/**
 * Design System: Sky High (Light Mode + Sky Blue)
 * Tema Premium, Limpo e Minimalista
 * Inspirado em Stripe, Vercel e Docker
 */

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

:root {
    /* === PALETA DE CORES === */
    --bg-body: #F8FAFC;              /* Slate 50 - Fundo principal */
    --bg-surface: #FFFFFF;           /* Branco puro - Cards e Sidebar */
    --bg-hover: #F1F5F9;             /* Slate 100 - Hover states */
    
    --primary: #0EA5E9;               /* Sky Blue 500 - Cor principal */
    --primary-hover: #0284C7;        /* Sky Blue 600 - Hover */
    --primary-soft: #E0F2FE;          /* Sky Blue 100 - Fundos suaves */
    --primary-light: #BAE6FD;         /* Sky Blue 200 - Acentos leves */
    
    --text-main: #0F172A;             /* Slate 900 - Títulos */
    --text-body: #475569;             /* Slate 600 - Texto corpo */
    --text-muted: #94A3B8;            /* Slate 400 - Texto secundário */
    --text-light: #CBD5E1;            /* Slate 300 - Placeholders */
    
    --border-light: #E2E8F0;          /* Slate 200 - Bordas sutis */
    --border-medium: #CBD5E1;          /* Slate 300 - Bordas médias */
    
    --success: #10B981;                /* Emerald 500 */
    --success-soft: #D1FAE5;          /* Emerald 100 */
    --warning: #F59E0B;                /* Amber 500 */
    --warning-soft: #FEF3C7;           /* Amber 100 */
    --danger: #EF4444;                 /* Red 500 */
    --danger-soft: #FEE2E2;            /* Red 100 */
    --info: #3B82F6;                   /* Blue 500 */
    --info-soft: #DBEAFE;              /* Blue 100 */
    
    /* === SOMBRAS (O Segredo do Premium) === */
    --shadow-sm: 0 1px 2px 0 rgba(14, 165, 233, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(14, 165, 233, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(14, 165, 233, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(14, 165, 233, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px 0 rgba(14, 165, 233, 0.15);
    
    /* === ESPAÇAMENTOS === */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* === TIPOGRAFIA === */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
    margin-bottom: 1rem;
    color: var(--text-body);
}

/* === CARDS (O Coração do Design) === */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
    padding: 0;
}

.card-title {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* === BOTÕES === */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-base);
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.25);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary {
    background-color: var(--bg-hover);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: var(--border-medium);
    color: var(--text-main);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* === INPUTS === */
.form-control,
.form-select {
    background-color: var(--bg-body);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    color: var(--text-main);
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

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

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

.form-text {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
}

/* === NAVBAR === */
.navbar {
    background-color: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.navbar-nav .nav-link {
    color: var(--text-body) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-soft);
    color: var(--primary) !important;
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-soft);
    color: var(--primary) !important;
}

/* === SIDEBAR (Para Dashboards) === */
.sidebar {
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-light);
    min-height: 100vh;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.sidebar .nav-link {
    color: var(--text-body);
    padding: 0.75rem 1.5rem;
    margin: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.sidebar .nav-link.active {
    background-color: var(--primary-soft);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: calc(1.5rem - 3px);
}

/* === TABELAS === */
.table {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table thead {
    background-color: var(--bg-hover);
}

.table thead th {
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-xs);
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-light);
    padding: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--primary-soft);
}

.table td {
    padding: 1rem;
    color: var(--text-body);
}

/* === BADGES === */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--font-size-xs);
}

.badge-primary {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.badge-success {
    background-color: var(--success-soft);
    color: var(--success);
}

.badge-warning {
    background-color: var(--warning-soft);
    color: var(--warning);
}

.badge-danger {
    background-color: var(--danger-soft);
    color: var(--danger);
}

/* === ALERTS === */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.alert-primary {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.alert-success {
    background-color: var(--success-soft);
    color: var(--success);
}

.alert-warning {
    background-color: var(--warning-soft);
    color: var(--warning);
}

.alert-danger {
    background-color: var(--danger-soft);
    color: var(--danger);
}

/* === MODAL === */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem;
}

/* === FORM SWITCH === */
.form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 1.5px solid var(--border-medium);
    background-color: var(--bg-hover);
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-hover);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* === UTILITÁRIOS === */
.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-soft {
    background-color: var(--primary-soft) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
}

/* === STAT CARDS === */
.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* === PRICING SECTION === */
.pricing-section {
    background: #F3F6F9;
    padding: 5rem 0;
}

.pricing-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px -5px rgba(37, 99, 235, 0.15);
}

.pricing-card-featured {
    border: 2px solid #2563EB;
    box-shadow: 0 4px 20px -5px rgba(37, 99, 235, 0.2);
    z-index: 10;
    position: relative;
}

.pricing-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px -8px rgba(37, 99, 235, 0.25);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.pricing-plan-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1E293B;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pricing-currency {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1E293B;
}

.pricing-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: #1E293B;
    line-height: 1;
}

.pricing-period {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #64748B;
}

.pricing-description {
    font-size: 0.875rem;
    color: #64748B;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: #1E293B;
    font-family: 'Poppins', sans-serif;
}

.pricing-feature:last-child {
    margin-bottom: 0;
}

.pricing-icon-check {
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-icon-x {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.5;
}

.pricing-feature-disabled {
    color: #94A3B8;
}

.pricing-feature-disabled span {
    text-decoration: line-through;
    opacity: 0.6;
}

.pricing-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
    color: white;
    text-decoration: none;
}

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

.btn-outline-primary {
    background: transparent;
    color: #2563EB;
    border: 2px solid #2563EB;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background: #2563EB;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .card {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-base);
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-value {
        font-size: 2.5rem;
    }
}
