/* LarhaAI - Modern AI-Themed Design */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --info-gradient: linear-gradient(135deg, #99BFF2 0%, #116FF7 100%);
    --warning-gradient: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-radius: 12px;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif !important;
    background: linear-gradient(90deg, #f7fafc 0%, #edf2f7 100%);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* MainLayout */

main {
    flex: 1;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-content {
    flex: 1 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar-larhaai {
    background: var(--primary-gradient);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

.navbar-brand-larhaai {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-larhaai .brand-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Cards */
.card-larhaai {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-larhaai:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-header-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.5rem;
}

.card-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Buttons */
.btn-larhaai-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btn-larhaai-primary:hover {
	background: transparent;
	border: 2px solid var(--primary-gradient);
	color: var(--primary-gradient);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-larhaai-secondary {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btn-larhaai-secondary:hover {
    background: transparent;
    border: 2px solid var(--secondary-gradient);
    color: var(--secondary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-larhaai-success {
    background: var(--success-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-larhaai-success:hover {
    background: transparent;
    border: 2px solid var(--success-gradient);
    color: var(--success-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 242, 254, 0.4);
}

.btn-larhaai-warning {
    background: var(--warning-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-larhaai-warning:hover {
    background: transparent;
    border: 2px solid var(--warning-gradient);
    color: var(--warning-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 242, 254, 0.4);
}

.btn-larhaai-info {
    background: var(--info-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-larhaai-info:hover {
    background: transparent;
    border: 2px solid var(--info-gradient);
    color: var(--info-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 242, 254, 0.4);
}

/* Buttons Outline */

.btn-larhaai-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-gradient);
    color: var(--primary-gradient);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-larhaai-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-larhaai-outline-secondary {
    background: transparent;
    border: 2px solid var(--secondary-gradient);
    color: var(--secondary-gradient);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-larhaai-outline-secondary:hover {
    background: var(--secondary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 87, 108, 0.4);
}

.btn-larhaai-outline-success {
    background: transparent;
    border: 2px solid var(--success-gradient);
    color: var(--success-gradient);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-larhaai-outline-success:hover {
    background: var(--success-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 242, 254, 0.4);
}

.btn-larhaai-outline-warning {
    background: transparent;
    border: 2px solid var(--warning-gradient);
    color: var(--warning-gradient);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-larhaai-outline-warning:hover {
    background: var(--warning-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 242, 254, 0.4);
}

.btn-larhaai-outline-info {
    background: transparent;
    border: 2px solid var(--info-gradient);
    color: var(--info-gradient);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-larhaai-outline-info:hover {
    background: var(--info-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 242, 254, 0.4);
}

/* Progress Bar */
.progress-larhaai {
    height: 24px;
    border-radius: 12px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.progress-bar-larhaai {
    background: var(--primary-gradient);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
    }

    75% {
        opacity: 0.85;
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.8);
    }
}

.progress-pulse {
    animation: progress-pulse 0.5s ease-in-out infinite;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    color: white;
}

/* Table */
.table-larhaai {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-larhaai thead {
    background: var(--primary-gradient);
    color: white;
}

.table-larhaai thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-larhaai tbody tr {
    transition: background-color 0.2s ease;
}

.table-larhaai tbody tr:hover {
    background-color: #f7fafc;
}

/* Score Badge */
.score-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.score-badge-high {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.score-badge-medium {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.score-badge-low {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.score-badge-very-low {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.badge-gold-glow {
    position: relative;
    z-index: 1;
}

.badge-gold-glow::before,
.badge-gold-glow::after {
    content: '';
    position: absolute;
    border-radius: 0.375rem;
    z-index: -1;
}

.badge-gold-glow::before {
    inset: -1.5px;
    background: linear-gradient( 90deg, #FFD700, #FFF8DC, #FFD700, #B8860B, #FFD700 );
    background-size: 300% 100%;
    animation: border-run 5s linear infinite;
}

.badge-gold-glow::after {
    inset: 0;
    background: #198754;
}

@keyframes border-run {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Loading Animation */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand-larhaai {
        font-size: 1.25rem;
    }

    .card-larhaai {
        margin-bottom: 1rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }
}

/* AI-themed accents */
.ai-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.ai-pulse {
    animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

/* Area Cards */
.area-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.area-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
}