/* static/css/custom.css */

/* --- Base & Theme --- */
:root {
    --primary-color: #6a11cb; /* Your Purple/Blue */
    --primary-light: #f4eaff;
    --primary-gradient: linear-gradient(120deg, #e6d4ff 0%, #dbefff 100%);
}

body {
    padding-top: 70px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    -webkit-text-size-adjust: 100%; /* For older Safari/iOS */
    text-size-adjust: 100%;      /* Standard property */
}

/* --- Card & Component Styles --- */
.card {
    border: none;
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15) !important;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color) !important; /* Use !important to override .btn-primary */
    border-color: var(--primary-color) !important;
}
.btn-primary:hover {
    background-color: #560bad !important;
    border-color: #560bad !important;
}
.btn-outline-primary-custom {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}
.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Header & Navbar --- */
.navbar-brand .brand-title-new {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
}
.navbar.fixed-top {
    padding-top: 0.75rem;    /* Default is ~0.5rem */
    padding-bottom: 0.75rem; /* Default is ~0.5rem */
}
.navbar-light .nav-item .nav-link {
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
    font-size: 15px;
}
.navbar-light .dropdown-toggle {
    font-size: 15px;
}
.navbar-light .nav-item .nav-link:hover,
.navbar-light .nav-item .nav-link.active {
    color: var(--primary-color);
}

/* Profile Percentage Indicators */
.profile-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    font-weight: bold;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 10;
}
.profile-indicator-low { background-color: #dc3545; }
.profile-indicator-medium { background-color: #ffc107; color: #333; }
.profile-indicator-good { background-color: #198754; }

#userDropdownLink {
    position: relative;
    padding-right: 20px; /* Space for the indicator */
}

/* --- Footer --- */
.footer {
    background-color: #2c2f33; /* Darker footer */
    color: #adb5bd;
    padding: 3rem 0 1.5rem 0;
    margin-top: auto; /* Pushes footer to bottom */
}
.footer h5 {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
.footer .social-icons a {
    color: #adb5bd;
    transition: color 0.2s;
}
.footer .social-icons a:hover {
    color: var(--primary-color);
}
.footer .bottom-bar {
    border-top: 1px solid #495057;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* --- Homepage Styles (New) --- */
.hero-section {
    background: var(--primary-gradient);
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
}
.hero-section .lead {
    font-size: 1.15rem;
    color: #444;
}
.hero-image-placeholder {
    height: 450px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #aaa;
    border: 2px dashed #ccc;
    font-size: 1.2rem;
}
.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}
.icon-1 { top: 5%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 70%; left: 40%; animation-delay: 2s; font-size: 4rem; }
.icon-3 { top: 20%; right: 15%; animation-delay: 4s; font-size: 3rem; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.how-it-works-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.how-it-works-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.how-it-works-step h5 {
    font-weight: 600;
}

.why-BuzzLynk-section {
    background-color: #f8f9fa;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.why-BuzzLynk-section .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-BuzzLynk-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.why-BuzzLynk-section .card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* --- About Page Specific Styles --- */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://placehold.co/1500x500/343a40/FFFFFF?text=Collaboration');
    background-size: cover;
    background-position: center;
}
.feature-list li {
    display: flex;
    align-items: start;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.feature-list i {
    font-size: 1.5rem;
    line-height: 1.5; /* Aligns icon with first line of text */
}
.team-card {
    border: none;
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
}
.cta-section {
    background-color: #e9ecef;
}

/* --- Filter Sidebar Styles --- */
.scrollable-checkbox-list {
    max-height: 220px; /* Approx 10 items */
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    padding: 10px;
}
.scrollable-checkbox-list .form-check {
    margin-bottom: 5px;
}
.price-slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-weight: 600;
}

/* --- Table Styles --- */
table th {
    text-align: start; 
}

/* --- Floating Chat Widget Styles --- */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
}
.chat-widget-toggler {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
.chat-notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid white;
}
.chat-widget-window {
    position: absolute;
    bottom: 80px; /* Position above the toggler button */
    right: 0;
    width: 350px;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    display: none; /* Hidden by default */
    flex-direction: column;
}
.chat-widget-header {
    background-color: #0d6efd;
    color: white;
    padding: 10px 15px;
    font-weight: 600;
}
.chat-widget-log {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    font-size: 0.9rem;
}
.chat-widget-input {
    border-top: 1px solid #dee2e6;
}

/* --- Homepage - Who's It For Section --- */
.who-is-it-for-section ul li { 
    font-size: 1.05rem; 
}
.who-is-it-for-section ul i { 
    margin-top: 5px; /* Aligns check icons with text */
}
.image-collage-placeholder {
    height: 400px;
    background-color: #e9ecef;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #aaa;
    border: 2px dashed #ccc;
}

/* --- Homepage - Platform Features Section --- */
.platform-features-section { 
    background-color: #f8f9fa; /* Alternating background */
}
.dashboard-mockup-placeholder {
    height: 450px;
    background-color: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #aaa;
    border: 2px dashed #ccc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

/* --- Homepage - Testimonials Section --- */
.testimonial-card {
    max-width: 700px; /* Makes carousel card narrower than screen */
    margin: 0 auto;
    padding: 2.5rem 3rem;
    background-color: #f8f9fa; /* Light gray bg */
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.testimonial-quote {
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    color: #333;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}
/* Style carousel controls to be dark */
.carousel-control-prev-icon-custom,
.carousel-control-next-icon-custom {
    background-image: none; /* Remove default Bootstrap icon */
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
}
.carousel-control-prev-icon-custom::before { 
    content: '‹'; 
}
.carousel-control-next-icon-custom::before { 
    content: '›'; 
}
.carousel-control-prev,
.carousel-control-next {
    width: 8%; /* Narrower control area */
}

/* --- Homepage - Call to Action (CTA) Section --- */
.cta-section {
    /* Use the reverse of the hero gradient, or a solid color */
    background: linear-gradient(120deg, var(--primary-color) 0%, #560bad 100%);
}
.cta-section .btn-light {
    font-weight: 600;
    color: var(--primary-color);
}
.cta-section .btn-outline-light {
    font-weight: 600;
}

/* --- Contact Page Styles --- */
.contact-info-card {
    border: 1px solid #e9ecef; /* Lighter border */
    border-left: 4px solid var(--primary-color);
    box-shadow: none; /* Override general card style */
    background-color: #fff; /* Ensure it's white */
}
.contact-info-card:hover {
    transform: none; /* Override general card hover */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Add subtle shadow on hover */
}
.social-icons-contact a {
    color: #555; /* Darker grey */
    transition: color 0.2s;
}
.social-icons-contact a:hover {
    color: var(--primary-color);
}

/* This makes the left column sticky on larger screens */
@media (min-width: 992px) {
    .sticky-lg-top {
        position: -webkit-sticky; /* For Safari */
        position: sticky;
        /* top: 100px; - This is now set inline in the HTML */
        z-index: 1019; /* Just below header */
    }
}

/* Fix for floating labels with Bootstrap 5.3 */
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}
.form-floating > .form-control:focus ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

/* UPDATED: Fix for floating <select> element */
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}
.form-floating > .form-select ~ label {
    opacity: .65;
    transform-origin: 0 0;
    /* This makes the label shrink and move up */
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

/* --- NEW: Form Sizing Overrides --- */

/* 1. Make floating inputs smaller (44px) */
.contact-form-wrapper .form-floating .form-control {
    height: calc(2.75rem + 2px);
    min-height: calc(2.75rem + 2px);
    line-height: 1.5; /* Added for consistency */
}

/* 2. Make floating selects smaller */
.contact-form-wrapper .form-floating .form-select {
    height: calc(2.75rem + 2px);
    min-height: calc(2.75rem + 2px);
    /* THIS IS THE FIX: */
    padding-top: 1.275rem;     /* Pushes the text ("I am a...") down */
    padding-bottom: 0.275rem;  /* Reduces bottom padding to match */
    line-height: 1.5; 
}
/* 3. Make textareas shorter */
.contact-form-wrapper .form-floating textarea.form-control {
    height: 110px; /* Even shorter */
}
/* 4. Adjust the "unfloated" label position */
.contact-form-wrapper .form-floating > label {
    padding-top: 0.65rem; /* Adjusted for 2.75rem height */
}
/* 5. Adjust the "floated" label position */
.contact-form-wrapper .form-floating > .form-control:not(:placeholder-shown) ~ label,
.contact-form-wrapper .form-floating > .form-control:focus ~ label,
.contact-form-wrapper .form-floating > .form-select ~ label {
    transform: scale(.85) translateY(-.65rem) translateX(.15rem);
}

/* --- About Us Page Styles --- */
.bg-light-stripe {
    background-color: #f8f9fa; /* The same light gray as homepage */
    border-top: 1px solid #e9ecef;
}

.about-placeholder-image {
    height: 100%;
    min-height: 350px;
    background-color: #e9ecef;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #aaa;
    border: 2px dashed #ccc;
}

.mission-item {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
}

.about-table {
    border-radius: 12px;
    overflow: hidden; /* This makes the table obey the border-radius */
    border: 1px solid #dee2e6;
}
.about-table thead {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}
.about-table th, .about-table td {
    padding: 1.25rem;
    vertical-align: middle;
}
.about-table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Stripe the table rows */
}
.about-quote {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
    color: #333;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}
