/* Grupo Vidah - Sistema de Ecocardiograma - Estilos Principais */

:root {
    /* Cores Grupo Vidah - Paleta Clara e Elegante */
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #06b6d4;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #ffffff;
    --dark-color: #334155;
    --white: #ffffff;
    
    /* Gradientes Grupo Vidah - Tons Claros */
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    --gradient-secondary: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #67e8f9 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Cores de Interface Médica */
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-glass-hover: rgba(255, 255, 255, 0.98);
    --border-glass: rgba(30, 64, 175, 0.2);
    
    /* Tipografia Moderna */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0em;
    --letter-spacing-wide: 0.025em;
    
    --gray-100: #f9fafb;
    --gray-200: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --font-family-primary: 'Inter', 'Montserrat', system-ui, sans-serif;
    --font-family-secondary: 'Inter', 'Roboto', system-ui, sans-serif;
    
    /* Efeitos Modernos - Grupo Vidah */
    --border-radius: 20px;
    --border-radius-lg: 25px;
    --box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    --box-shadow-lg: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    --box-shadow-glass: 0 20px 40px 0 rgba(37, 99, 235, 0.15);
    --box-shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Backdrop Effects */
    --backdrop-blur: blur(16px);
}

/* Estilos Globais de Tipografia e Layout */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: 15px;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--dark-color);
    background: var(--gradient-light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Títulos com Tipografia Consistente */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; font-weight: var(--font-weight-extrabold); }
h2 { font-size: 1.875rem; font-weight: var(--font-weight-bold); }
h3 { font-size: 1.5rem; font-weight: var(--font-weight-bold); }
h4 { font-size: 1.25rem; font-weight: var(--font-weight-semibold); }
h5 { font-size: 1.125rem; font-weight: var(--font-weight-semibold); }
h6 { font-size: 1rem; font-weight: var(--font-weight-medium); }

/* Parágrafos e Texto */
p {
    margin: 0 0 1rem 0;
    line-height: var(--line-height-relaxed);
}

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

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Botões com Tipografia Consistente */
.btn {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

/* Formulários com Tipografia Melhorada */
.form-control, .form-select {
    font-family: var(--font-family-primary);
    font-size: 15px;
    line-height: var(--line-height-normal);
    border-radius: 10px;
    border: 2px solid var(--gray-300);
    transition: var(--transition);
}

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

/* Labels com Tipografia Consistente */
.form-label, label {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Cards com Layout Melhorado */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
    background: var(--white);
    overflow: hidden;
}

.card-title {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Tabelas com Layout Responsivo */
.table {
    font-family: var(--font-family-primary);
    font-size: 14px;
}

.table th {
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
    border-bottom: 2px solid var(--gray-200);
}

/* Responsividade Tipográfica */
@media (max-width: 768px) {
    html { font-size: 14px; }
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 14px;
    }
}

/* Hero Section - Grupo Vidah Style */
.hero-section {
    background: var(--gradient-primary);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Statistics Cards - Grupo Vidah Style */
.eco-stat-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Seções Médicas com Tons Claros */
.medical-section {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.medical-section-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
    padding: 1.25rem 1.75rem;
    font-weight: 700;
    border-bottom: 2px solid #bfdbfe;
    font-size: 1.1rem;
}

.medical-section-body {
    padding: 2rem;
    background: #ffffff;
}

/* Correção Específica para Seções de Exames */
.card-header.bg-primary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #1e40af !important;
    border-bottom: 2px solid #bfdbfe !important;
}

.bg-primary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #1e40af !important;
}

/* Override Bootstrap's bg-primary */
.bg-primary h1, .bg-primary h2, .bg-primary h3, 
.bg-primary h4, .bg-primary h5, .bg-primary h6 {
    color: #1e40af !important;
}

/* Seções de Parâmetros Específicas */
.parameter-section .card-header,
.laudo-section .card-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #1e40af !important;
    border-bottom: 2px solid #bfdbfe !important;
    font-weight: 700;
}

/* Progress Steps Colors */
.progress-step.active {
    color: #1e40af !important;
    font-weight: 600;
}

/* Text Primary Override */
.text-primary {
    color: #1e40af !important;
}

.eco-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.eco-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.eco-stat-card:hover::before {
    transform: scaleX(1);
}

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

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

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Navigation Styles - Grupo Vidah Design */
.eco-navbar {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.15);
    padding: 1.25rem 0;
    position: relative;
}

.eco-navbar .navbar-brand {
    font-family: var(--font-family-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eco-navbar .brand-icon {
    font-size: 2rem;
    color: #06b6d4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eco-navbar .brand-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.eco-navbar .brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.eco-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem !important;
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.eco-navbar .nav-link:hover,
.eco-navbar .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.eco-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
}

.eco-navbar .dropdown-item {
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.eco-navbar .dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header Styles */
.eco-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 2rem 0;
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 2rem;
}

.eco-logo {
    max-height: 60px;
    width: auto;
}

.eco-title {
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation Menu */
.eco-nav {
    background-color: var(--secondary-color);
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eco-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.eco-nav-item {
    margin: 0 1rem;
}

.eco-nav-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: inline-block;
}

.eco-nav-item a:hover,
.eco-nav-item a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Card Styles - Grupo Vidah Design */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    margin-bottom: 2rem;
    transition: var(--transition);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

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

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
    border-bottom: 2px solid #bfdbfe;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
    font-weight: 700;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: #1e40af;
    margin-bottom: 0;
    font-weight: 700;
}

/* Statistics Cards */
.eco-stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.eco-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.eco-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-glow);
    background: rgba(255, 255, 255, 0.95);
}

.eco-stat-card:hover::before {
    background: var(--gradient-accent);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* Action Buttons */
.eco-action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: var(--white);
    padding: 1rem;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.eco-action-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.eco-action-btn i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Form Styles - Grupo Vidah Design */
.form-control {
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    transition: var(--transition);
    background-color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.form-select {
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    transition: var(--transition);
    background-color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.form-floating > label {
    color: var(--gray-600);
    font-weight: 600;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Button Styles - Grupo Vidah Design */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    transition: var(--transition);
    border-radius: 50px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--gradient-accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    transition: var(--transition);
    border-radius: 50px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: var(--warning-color);
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--danger-color);
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-left-color: var(--info-color);
    color: #0c5460;
}

/* Table Styles */
.table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-glass);
}

.table thead th {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--bg-glass-hover);
    transform: scale(1.01);
}

/* Footer Styles - Cores Claras */
.eco-footer {
    background: var(--gradient-light);
    color: var(--dark-color);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--primary-color);
}

.eco-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.eco-footer a:hover {
    color: var(--secondary-color);
}

/* Welcome Header */
.welcome-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--white), var(--gray-100));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Progress Bars */
.progress {
    height: 0.5rem;
    background-color: var(--gray-200);
    border-radius: var(--border-radius);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Medical Specific Styles */
.medical-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.medical-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.medical-section-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
}

.medical-section-body {
    padding: 1.5rem;
}

.reference-range {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-style: italic;
}

.abnormal-value {
    color: var(--danger-color);
    font-weight: 600;
}

.normal-value {
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .eco-header {
        padding: 1rem 0;
        text-align: center;
    }
    
    .eco-title {
        font-size: 1.5rem;
    }
    
    .eco-nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .eco-nav-item {
        margin: 0.25rem 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .eco-action-btn {
        text-align: center;
        flex-direction: column;
    }
    
    .eco-action-btn i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 0;
    }
    
    .eco-header {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 0;
    }
}

/* Print Styles */
@media print {
    .eco-navbar,
    .eco-nav,
    .eco-footer,
    .btn,
    .alert {
        display: none !important;
    }
    
    .card {
        border: 1px solid var(--gray-300);
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .card-header {
        background: var(--gray-100) !important;
        color: var(--gray-900) !important;
        border-bottom: 1px solid var(--gray-300);
    }
    
    body {
        background: var(--white);
        font-size: 12pt;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Animation Keyframes Modernos */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--box-shadow);
    }
    50% {
        transform: scale(1.02);
        box-shadow: var(--box-shadow-glow);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--box-shadow);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: var(--box-shadow-glass);
    }
    50% {
        box-shadow: var(--box-shadow-glow);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    margin-left: -0.5rem;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Light Theme Support - Apenas Cores Claras */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-100: #f8fafc;
        --gray-200: #e2e8f0;
        --gray-300: #cbd5e1;
        --gray-400: #94a3b8;
        --gray-500: #64748b;
        --white: #ffffff;
    }
    
    body {
        background: var(--gradient-light);
        color: var(--dark-color);
    }
    
    .card {
        background-color: #ffffff;
        color: var(--dark-color);
    }
    
    .table {
        background-color: #ffffff;
        color: var(--dark-color);
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

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

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

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

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

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

.transition {
    transition: var(--transition) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

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

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

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support - Cores Claras */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--primary-color);
    }
    
    .btn {
        border: 2px solid currentColor;
        font-weight: 700;
    }
}

/* Responsividade Avançada - Grupo Vidah Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .eco-stat-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .eco-navbar .brand-icon {
        font-size: 1.5rem;
    }
    
    .eco-navbar .brand-text {
        font-size: 1rem;
    }
    
    .eco-navbar .brand-subtitle {
        font-size: 0.7rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .card {
        border-radius: 15px;
    }
    
    .card-header {
        border-radius: 15px 15px 0 0;
        padding: 0.875rem 1rem;
    }
    
    .eco-stat-card {
        padding: 1.5rem 1rem;
    }
    
    .form-control, .form-select {
        border-radius: 10px;
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .btn {
        border-radius: 25px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
