/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #01b1a4;
    --primary-color-rgb: 1, 177, 164;
    --secondary-color: #6c757d;
    
    /* Bootstrap CSS variable overrides */
    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 1, 177, 164;
}

/* Set Inter as the main font family */
body, html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Website max-width constraint */
.container, .container-fluid {
    max-width: 1140px !important;
}

/* Google Icons styling */
.material-icons, .material-symbols-outlined {
    font-family: 'Material Icons', 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* Icon sizes */
.icon-large, .material-icons.icon-large, .material-symbols-outlined.icon-large {
    font-size: 3rem;
}

.icon-medium, .material-icons.icon-medium, .material-symbols-outlined.icon-medium {
    font-size: 2.5rem;
}

.icon-small, .material-icons.icon-small, .material-symbols-outlined.icon-small {
    font-size: 1.5rem;
}

.icon-hero, .material-icons.icon-hero, .material-symbols-outlined.icon-hero {
    font-size: 8rem;
    opacity: 0.8;
}

/* Bootstrap Icons to Google Icons transition helper classes */
.bi {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

.icon-contact {
    font-size: 1.2rem;
}

/* Homepage specific styles */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}


.hero-row {
    min-height: 420px;
}

.hero-text-col {
    flex: 0 0 45%;
    max-width: 45%;
    padding-right: 1rem;
}

.hero-image-col {
    flex: 0 0 55%;
    max-width: 55%;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 3;
    height: 400px;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 24px;
    right: -30px;
    bottom: 24px;
    background: linear-gradient(135deg, rgb(0 123 255 / 43%) 0%, rgb(112 188 255 / 10%) 100%);
    border-radius: 1.5rem;
    z-index: -1;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 48px;
    right: -55px;
    bottom: 40px;
    background: linear-gradient(135deg, rgb(65 24 244 / 37%) 0%, rgb(116 61 242 / 5%) 100%);
    border-radius: 1.5rem;
    z-index: -2;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-text-col,
    .hero-image-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-text-col {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-image-col {
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }
    
    .hero-image-container {
        margin: 0 1rem;
        max-width: 360px;
        height: 320px;
    }
    
    .hero-image-container::before {
        top: -8px;
        left: 16px;
        right: -28px;
        bottom: 16px;
    }
    
    .hero-image-container::after {
        top: 10px;
        left: 36px;
        right: -44px;
        bottom: -8px;
    }
}

.hero-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.feature-icon {
    font-size: 3rem;
}

.site-footer {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    color: var(--text-dark);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3.5rem 2rem;
}

.site-footer .text-light {
    color: rgba(0, 0, 0, 0.7) !important;
}

.site-footer a {
    color: var(--primary-color);
}

.site-footer a:hover {
    color: #00857a;
}

.site-footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.12);
    color: var(--primary-color);
    transition: all 0.2s ease-in-out;
}

.site-footer .social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.site-footer hr {
    border-color: rgba(0, 0, 0, 0.05);
}

.display-4 {
    font-size: clamp(1.875rem, 0.4688rem + 4.5vw, 3rem);
    font-family: Inter !important;
    font-weight: 600;
}

.primary-text{
    color: var(--primary-color);
    font-size: clamp(1.875rem, 0.4688rem + 4.5vw, 3rem);
    font-family: Inter !important;
    font-weight: 600;
}
/* Services page styles */
.service-icon {
    font-size: 1.5rem;
}

.info-icon {
    font-size: 3rem;
}

.benefit-icon {
    font-size: 2.5rem;
}

/* Contact page styles */
.contact-icon {
    font-size: 1.2rem;
}

/* Auth pages styles */
.auth-icon {
    font-size: 3rem;
}

/* Appointment pages styles */
.icon-xlarge {
    font-size: 4rem;
}

/* Admin sidebar styles */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
}

.admin-sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
}

.admin-sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.admin-sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.admin-sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

.admin-main {
    padding-top: 2rem;
    min-height: calc(100vh - 200px);
}

/* Ensure footer doesn't overlap with sidebar */
.admin-footer {
    margin-left: 0;
}

/* Push main content away from sidebar */
.admin-content {
    margin-left: auto !important;
}

@media (min-width: 768px) {
    .admin-footer {
        margin-left: 16.66667%; /* Width of col-md-2 sidebar */
    }
}

@media (min-width: 992px) {
    .admin-footer {
        margin-left: 16.66667%; /* Width of col-lg-2 sidebar */
    }
}

@media (max-width: 767.98px) {
    .admin-sidebar {
        top: 5rem;
        height: calc(100vh - 5rem);
    }
    
    .admin-footer {
        margin-left: 0;
    }
}

/* Calendar booking styles */
.calendar-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.calendar-day {
    min-height: 80px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.has-availability {
    background-color: #e8f5e8;
    border-color: #28a745;
}

.calendar-day.has-availability:hover {
    background-color: #d4edda;
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
}

.calendar-day.past {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.empty {
    background-color: #f8f9fa;
    cursor: default;
}

.availability-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.75rem;
    background-color: #28a745;
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
}

.time-slot {
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Registration Tab Styles */
.registration-tabs {
    position: relative;
}

.registration-tabs .nav-pills {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #dee2e6;
}

.registration-tabs .nav-pills .nav-item {
    margin-bottom: -2px;
}

.registration-tabs .nav-pills .nav-link {
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 600;
    padding: 0.5rem 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f8f9fa;
    color: #6c757d;
    position: relative;
    margin-right: 0.25rem;
}

.registration-tabs .nav-pills .nav-link:not(.active):hover {
    background-color: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    border-bottom: none;
}

.registration-tabs .nav-pills .nav-link.active {
    background-color: white;
    color: var(--primary-color);
    border-color: #dee2e6;
    border-bottom: 1px solid white;
    z-index: 1;
    position: relative;
}

.registration-tabs .nav-pills .nav-link i {
    font-size: 1.1em;
}

.registration-tabs .tab-content {
    background-color: white;
    border-top: none;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    padding: 2rem;
    min-height: 140px;
    position: relative;
    z-index: 0;
}

.registration-tabs .alert {
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 0;
}

/* Button animations for role switching */
.role-submit-btn {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* Consistent button styling for all buttons */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger, .btn-info, .btn-light, .btn-dark,
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-warning, .btn-outline-danger, .btn-outline-info, .btn-outline-light, .btn-outline-dark {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    min-height: 44px !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Quick Action buttons specific styling */
.quick-action-btn {
    padding: 0.5rem !important;
    height: 20px !important;
    font-weight: 600 !important;
}

/* Primary color overrides */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #00857a !important;
    border-color: #00857a !important;
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

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

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

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

/* Button group consistency */
.btn-group .btn, .btn-group-sm .btn {
    padding: 0.35rem 0.6rem !important;
    min-height: 32px !important;
    font-size: 0.75rem !important;
}

/* Small button overrides */
.btn-sm {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.75rem !important;
    min-height: 30px !important;
}

.btn-group.btn-group-sm {
    gap: 0.4rem;
}

/* Large button overrides */
.btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    min-height: 40px !important;
}

/* Ensure consistent transitions */
.btn {
    transition: all 0.15s ease-in-out !important;
}

/* Fix button text alignment */
.btn i {
    vertical-align: middle !important;
}

.role-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Booking Info Page Styles */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.8;
}

.booking-step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.mini-calendar {
    max-width: 200px;
    margin: 0 auto;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-row {
    display: flex;
    gap: 0.25rem;
    justify-content: space-between;
}

.calendar-cell {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6c757d;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.calendar-cell.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.session-preview {
    border: 1px solid #e9ecef;
}

.session-avatar {
    font-size: 2.5rem;
}

.followup-preview {
    border: 1px solid #e9ecef;
    text-align: center;
}

.followup-icon-heart {
    font-size: 2rem;
}

.followup-icon-calendar {
    font-size: 3rem;
    opacity: 0.7;
}

.followup-date-large {
    font-size: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-icon i {
    font-size: 2rem;
}

/* Progress bar styling */
.progress {
    height: 4px;
}

.session-progress {
    width: 75%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 4rem;
    }
    
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .benefit-card {
        padding: 1.5rem 1rem;
    }
}
