/* static/css/style.css */

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevent global scrollbar */
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* Header stays fixed at top naturally via flex-direction: column */
header {
    flex-shrink: 0;
    z-index: 1030;
}

/* Main container takes all remaining space */
main {
    flex-grow: 1;
    overflow: hidden; /* Prevent spillover */
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Crucial for nested flex scrolling */
}

/* Utility: A container that scrolls internally */
.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

/* Utility: Full height for grid systems */
.h-100-visual {
    height: 100%;
}

/* --- Social Login Buttons --- */
.btn-google {
    background-color: #DB4437;
    color: white;
}
.btn-google:hover {
    background-color: #c23322;
    color: white;
}

.btn-facebook {
    background-color: #4267B2;
    color: white;
}
.btn-facebook:hover {
    background-color: #365899;
    color: white;
}

.btn-apple {
    background-color: #000000;
    color: white;
}
.btn-apple:hover {
    background-color: #333333;
    color: white;
}

/* D:\GitHub\mcnet-citas\web\static\css\style.css */

/* --- FIXED SIDEBAR STYLING --- */

/* 1. Sidebar Container - Fixes vertical scrolling issue */
nav#sidebarMenu {
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    height: 100vh; /* Force it to be exactly viewport height */
    position: sticky;
    top: 0;
    overflow-y: auto; /* Scroll inside sidebar only if needed */
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

/* 2. Avatar "B" Fix - Forces circle shape */
.user-avatar-circle {
    width: 60px;
    height: 60px;
    background-color: #0d6efd; /* Primary Blue */
    color: #ffffff;
    border-radius: 50%;
    display: flex; /* Critical for centering */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 10px auto; /* Center horizontally */
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.sidebar-user-card {
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-bottom: 1px solid #eee;
}

/* 3. Menu Buttons - Fixes Hover/Click States */
/* We target the specific class inside the specific ID */
nav#sidebarMenu .custom-nav-link {
    color: #495057 !important; /* Force Dark Grey default */
    font-weight: 500;
    padding: 12px 20px;
    margin: 4px 15px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav#sidebarMenu .custom-nav-link i {
    width: 24px;
    margin-right: 10px;
    color: #adb5bd; /* Light grey icons default */
    transition: color 0.2s;
}

/* HOVER EFFECT */
nav#sidebarMenu .custom-nav-link:hover {
    background-color: #f1f8ff !important; /* Light blue bg */
    color: #0d6efd !important; /* Blue text */
    transform: translateX(4px); /* Slide right animation */
    cursor: pointer;
}

nav#sidebarMenu .custom-nav-link:hover i {
    color: #0d6efd;
}

/* ACTIVE/CLICKED STATE */
nav#sidebarMenu .custom-nav-link.active {
    background-color: #e7f1ff !important;
    color: #0d6efd !important;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.1);
}

nav#sidebarMenu .custom-nav-link.active i {
    color: #0d6efd;
}

/* 4. Bottom Widget - Compact styling */
.sidebar-usage-box {
    background-color: #f8f9fa;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.progress-xs {
    height: 6px;
    margin-bottom: 10px;
    background-color: #e2e6ea;
    border-radius: 3px;
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    z-index: 1050;
}

/* Footer link hover effect */
.hover-primary {
    transition: color 0.2s ease-in-out;
}
.hover-primary:hover {
    color: #0d6efd !important;
}

/* --- CSP Utility Classes (Replacing Inline Styles) --- */
.max-h-55vh { max-height: 55vh; }
.max-h-70vh { max-height: 70vh; }
.max-h-200px { max-height: 200px; }
.max-h-250px { max-height: 250px; }
.max-h-300px { max-height: 300px; }
.max-h-400px { max-height: 400px; }
.h-40px { height: 40px; }
.h-45px { height: 45px; }
.h-50px { height: 50px; }
.h-90px { height: 90px; }
.h-120px { height: 120px; }
.h-180px { height: 180px; }
.h-250px { height: 250px; }
.h-300px { height: 300px; }
.h-400px { height: 400px; }
.h-450px { height: 450px; }
.h-85vh { height: 85vh; }
.h-calc-85vh-60px { height: calc(85vh - 60px); }
.h-calc-100vh-200px { height: calc(100vh - 200px); }
.min-h-calc-100vh-120px { min-height: calc(100vh - 120px); }
.w-40px { width: 40px; }
.w-45px { width: 45px; }
.w-50px { width: 50px; }
.w-60px { width: 60px; }
.w-90px { width: 90px; }
.w-100px { width: 100px; }
.w-120px { width: 120px; }
.w-320px { width: 320px; }
.max-w-200px { max-width: 200px; }
.max-w-250px { max-width: 250px; }
.max-w-500px { max-width: 500px; }
.max-w-600px { max-width: 600px; }
.max-w-700px { max-width: 700px; }
.max-w-1200px { max-width: 1200px; }
.max-w-80pct { max-width: 80%; }
.min-w-200px { min-width: 200px; }

.fs-065rem { font-size: 0.65rem; }
.fs-07rem { font-size: 0.7rem; }
.fs-075rem { font-size: 0.75rem; }
.fs-08rem { font-size: 0.8rem; }
.fs-085rem { font-size: 0.85rem; }
.fs-09rem { font-size: 0.9rem; }
.fs-11rem { font-size: 1.1rem; }
.fs-12rem { font-size: 1.2rem; }
.fs-25rem { font-size: 2.5rem; }
.fs-3rem { font-size: 3rem; }

.lh-40px { line-height: 40px; }
.lh-12 { line-height: 1.2; }
.ws-pre-wrap { white-space: pre-wrap; }
.ws-normal { white-space: normal; }
.text-transform-uppercase { text-transform: uppercase; }
.obj-fit-cover { object-fit: cover; }
.overflow-x-hidden { overflow-x: hidden; }
.resize-none { resize: none; }
.z-1060 { z-index: 1060; }
.z-1100 { z-index: 1100; }

.day-inactive { opacity: 0.4; pointer-events: none; }
.hero-gradient { background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%); }
.map-container-border { border-radius: 6px; border: 1px solid #ccc; }
.map-container-shadow { border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.border-radius-4 { border-radius: 4px; }
.border-radius-8 { border-radius: 8px; }
.border-light-grey { border: 1px solid #dee2e6; }

/* Scrollbar Custom Global (Estilo macOS/Moderna) */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* --- Extracted Inline Styles --- */

/* Login Buttons */
.btn-modern { padding: 12px 20px; font-weight: 500; font-size: 1rem; border-radius: 8px; transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); display: inline-flex; align-items: center; justify-content: center; }
.btn-modern i { font-size: 1.25rem; }
.btn-google { background-color: #ffffff; color: #3c4043; border: 1px solid #dadce0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
.btn-google:hover, .btn-google:focus { background-color: #ffffff; color: #3c4043; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); transform: translateY(-2px); border-color: #d2e3fc; }
.btn-apple { background-color: #000000; color: #ffffff; border: 1px solid #000000; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); }
.btn-apple:hover, .btn-apple:focus { background-color: #1a1a1a; color: #ffffff; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); transform: translateY(-2px); }

/* User Dashboard */
.dashboard-main-row { min-height: 650px; }
.card-upcoming { min-height: 400px; }
.card-past, .card-cancelled { min-height: 300px; }
@media (min-width: 992px) { .card-upcoming, .card-past, .card-cancelled { min-height: 0; } }
.history-card { transition: all 0.2s ease-in-out; border-left: 4px solid #dee2e6 !important; background-color: #ffffff; }
.history-card:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,0,0,0.05) !important; }
.history-card.status-C { border-left-color: #198754 !important; } 
.history-card.status-P { border-left-color: #ffc107 !important; } 
.history-card.status-X { border-left-color: #dc3545 !important; opacity: 0.85; } 

/* Star Rating */
.star-hover { cursor: pointer; color: #e4e5e9; transition: color 0.2s; font-size: 1.2rem; }
.star-hover.hover, .star-hover.active { color: #ffc107; }
.readonly-star { color: #ffc107; font-size: 1.1rem; }
.readonly-star.empty { color: #e4e5e9; }

/* Public Business Page */
.staff-zoom { transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); transform-origin: left center; position: relative; }
.staff-zoom:hover { transform: scale(2.8); z-index: 1050; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* Support Button */
.btn-floating-cookie { bottom: 20px; left: 20px; z-index: 1000; border-radius: 50%; width: 50px; height: 50px; transition: transform 0.3s ease; }