/* Business Projections CSS */
/* Root variables for colors to match Tailwind config */
:root {
    --bg-slate-950: #020617;
    --text-slate-200: #e2e8f0;
    --text-slate-400: #94a3b8;
    --text-slate-500: #64748b;
    --text-white: #ffffff;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --purple-500: #a855f7;
    --purple-400: #c084fc;
    --pink-500: #ec4899;
    --white-2: rgba(255, 255, 255, 0.02);
    --white-5: rgba(255, 255, 255, 0.05);
    --white-10: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Page global styles to override theme if necessary */
.page-business-projections {
    background-color: var(--bg-slate-950);
    color: var(--text-slate-200);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Layout Utilities */
.bp-container {
    max-width: 72rem; /* max-w-6xl */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
}

.bp-flex { display: flex; }
.bp-justify-between { justify-content: space-between; }
.bp-items-center { align-items: center; }
.bp-gap-2 { gap: 0.5rem; }
.bp-gap-4 { gap: 1rem; }
.bp-gap-6 { gap: 1.5rem; }
.bp-gap-8 { gap: 2rem; }
.bp-mb-2 { margin-bottom: 0.5rem; }
.bp-mb-4 { margin-bottom: 1rem; }
.bp-mb-6 { margin-bottom: 1.5rem; }
.bp-mb-8 { margin-bottom: 2rem; }
.bp-mb-12 { margin-bottom: 3rem; }
.bp-mb-20 { margin-bottom: 5rem; }

.bp-grid { display: grid; }
.bp-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .bp-md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .bp-lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bp-lg-col-span-2 { grid-column: span 2 / span 2; }
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bp-rounded-xl { border-radius: 0.75rem; }
.bp-rounded-2xl { border-radius: 1rem; }
.bp-rounded-large { border-radius: 2rem; }
.bp-rounded-xlarge { border-radius: 3rem; }

.bp-p-6 { padding: 1.5rem; }
.bp-p-8 { padding: 2rem; }
.bp-p-10 { padding: 2.5rem; }

/* Typography */
.bp-text-xs { font-size: 0.75rem; line-height: 1rem; }
.bp-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.bp-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.bp-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.bp-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.bp-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.bp-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.bp-font-bold { font-weight: 700; }
.bp-font-black { font-weight: 900; }
.bp-italic { font-style: italic; }
.bp-uppercase { text-transform: uppercase; }
.bp-tracking-widest { letter-spacing: 0.1em; }
.bp-tracking-tighter { letter-spacing: -0.05em; }

.bp-text-white { color: var(--text-white); }
.bp-text-slate-400 { color: var(--text-slate-400); }
.bp-text-slate-500 { color: var(--text-slate-500); }
.bp-text-cyan-500 { color: var(--cyan-500); }
.bp-text-cyan-400 { color: var(--cyan-400); }
.bp-text-blue-500 { color: var(--blue-500); }
.bp-text-blue-400 { color: var(--blue-400); }
.bp-text-purple-500 { color: var(--purple-500); }
.bp-text-purple-400 { color: var(--purple-400); }
.bp-text-pink-500 { color: var(--pink-500); }

.bp-bg-white-5 { background-color: var(--white-5); }
.bp-bg-cyan-500-10 { background-color: rgba(6, 182, 212, 0.1); }
.bp-bg-purple-500-10 { background-color: rgba(168, 85, 247, 0.1); }

.bp-border-white-5 { border-color: var(--white-5); }
.bp-border-white-10 { border-color: var(--white-10); }
.bp-border-blue-500 { border-color: var(--blue-500); }
.bp-border-pink-500 { border-color: var(--pink-500); }
.bp-border-purple-500 { border-color: var(--purple-500); }
.bp-border-cyan-500-20 { border-color: rgba(6, 182, 212, 0.2); }

.bp-border-l-4 { border-left-width: 4px; border-left-style: solid; }

/* Components */
.bp-header {
    border-bottom: 1px solid var(--white-5);
    padding-bottom: 2rem;
}

.bp-nav-btn {
    background-color: var(--white-5);
    border: 1px solid var(--white-10);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    color: var(--text-slate-200);
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}
.bp-nav-btn:hover {
    background-color: var(--white-10);
}

.bp-stat-card {
    background-color: var(--white-5);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--white-10);
}

.bp-card-blue-glow {
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.05);
}
.bp-card-cyan-glow {
    border-color: rgba(6, 182, 212, 0.2);
    background-color: rgba(6, 182, 212, 0.05);
}

.bp-sticky {
    position: sticky;
    top: 2rem;
    align-self: start; /* Fix pour éviter que la carte ne s'étire sur toute la hauteur */
    z-index: 10;
}

/* Range Input Styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none; /* Fix lint warning */
    width: 100%;
    background: transparent;
    margin: 10px 0;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #334155;
    border-radius: 4px;
}
input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--cyan-500);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none; /* Fix lint warning */
    margin-top: -6px;
    box-shadow: 0 0 10px var(--cyan-500);
}
/* Firefox */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #334155;
    border-radius: 4px;
}
input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    background: var(--cyan-500);
    cursor: pointer;
    box-shadow: 0 0 10px var(--cyan-500);
}

/* Campaigns & ROI Styles */
.bp-campaign-box {
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--white-5);
    border-left: 4px solid transparent;
    transition: transform 0.2s ease;
}
.bp-campaign-box:hover {
    transform: translateX(4px);
    background: var(--white-10);
}

/* Fix for responsive table */
.bp-overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Graph container adjustment */
.bp-graph-container {
    height: 500px; /* Plus haut car plus large */
    position: relative;
    padding-bottom: 2rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .bp-container { padding: 1rem; }
    .bp-sticky { position: static; }
    .bp-graph-container { height: 300px; }
}
