:root {
    --primary-color: #1a73e8;
    --secondary-color: #f97316;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

/* ==================== BASE STYLES ==================== */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Only public pages with navbar need top padding */
body.public-site {
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1557b0;
    border-color: #1557b0;
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ==================== MAIN SITE NAVIGATION ==================== */
.navbar {
    background-color: rgba(26, 115, 232, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand span {
    color: #fff;
    font-weight: 600;
    margin-left: 8px;
    font-size: 1.1rem;
}

.navbar-nav .nav-link {
    color: #fff;
    margin: 0 10px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Mobile navbar collapse */
.navbar-collapse {
    background-color: rgba(26, 115, 232, 0.98);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

@media (min-width: 992px) {
    .navbar-collapse {
        background-color: transparent;
        padding: 0;
        margin-top: 0;
        border-radius: 0;
    }
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(180deg, #1a2332 0%, #2c3e50 100%);
    color: #fff;
    z-index: 1050;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-brand {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
}

/* Force sidebar logo to a small fixed size */
.sidebar-brand img {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand span {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu {
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu .menu-title {
    padding: 12px 20px 6px;
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-menu li { margin: 0; }

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 11px 20px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    gap: 12px;
    font-size: 14px;
    text-decoration: none;
}

.sidebar-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-menu li a span { flex: 1; }

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--secondary-color);
    text-decoration: none;
}

.sidebar-menu li a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--secondary-color);
}

.sidebar-menu li a .badge {
    background: var(--danger-color);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

.sidebar-overlay.active {
    display: block;
}

/* ==================== ADMIN PANEL ==================== */

/* ==================== CUSTOMER MOBILE HEADER FIX ==================== */
@media (max-width: 576px) {
    .admin-header {
        padding: 10px 12px;
        margin: -10px -10px 10px -10px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .admin-header .header-left {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }
    .admin-header .header-left h1 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }
    .admin-header .header-right {
        flex-shrink: 0;
        gap: 6px;
    }
    .admin-header .user-name {
        display: none;
    }
    .admin-header .avatar-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .admin-header .notifications .dropdown-toggle {
        padding: 5px 8px;
        font-size: 1rem;
    }
    .sidebar-toggle {
        padding: 4px 8px;
        font-size: 1rem;
    }
}
.admin-container {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
    position: relative;
    width: 100%;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    background-color: var(--light-color);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    width: calc(100% - 250px);
    overflow-x: hidden;
}

.admin-header {
    background-color: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: -20px -20px 20px -20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    min-height: 60px;
}

.admin-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header .header-left h1 {
    font-size: 1.5rem;
    margin: 0;
}

.admin-header .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    color: var(--dark-color);
    font-size: 1.2rem;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    display: none;
    line-height: 1;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    color: var(--primary-color);
    background: #f0f0f0;
}

/* User profile in admin header */
.user-profile {
    display: flex;
    align-items: center;
}

.user-profile .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
}

.user-profile .dropdown-toggle:hover {
    background: #f0f0f0;
    color: var(--dark-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Avatar circle with initials */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #4a90e2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(26, 115, 232, 0.3);
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== NOTIFICATIONS ==================== */

.notifications {
    position: relative;
}

.notifications .dropdown-toggle {
    color: var(--dark-color);
    font-size: 1.2rem;
    position: relative;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
}

.notifications .dropdown-toggle:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.notifications .badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger-color);
    color: #fff;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 9px;
    min-width: 16px;
    text-align: center;
    font-weight: 600;
}

/* Notifications dropdown panel */
.notifications-dropdown {
    padding: 0;
    min-width: 350px;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.notification-item {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    text-decoration: none !important;
    color: #333 !important;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #f0f7ff;
    border-left: 3px solid #1a73e8;
}

.notification-item .notification-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notification-item .notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.notification-item .notification-icon i {
    font-size: 14px;
}

.notification-item .notification-text {
    flex: 1;
    min-width: 0;
}

.notification-item .notification-text > div {
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-item .notification-text small {
    font-size: 11px;
    color: #999;
}

.mark-all-read {
    font-weight: 500;
    padding: 12px 15px;
    text-decoration: none !important;
    text-align: center;
    color: #1a73e8 !important;
}

.mark-all-read:hover {
    background: #f0f7ff;
}

/* Dashboard content */
.dashboard-content {
    padding: 0;
}

/* Stats Cards */
.stats-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stats-card .card-body {
    display: flex;
    align-items: center;
    padding: 20px;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
}

.stats-content {
    flex: 1;
    min-width: 0;
}

.stats-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stats-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.income-card {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.income-card .stats-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.expense-card {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.expense-card .stats-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.net-card {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.net-card .stats-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.customers-card {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.customers-card .stats-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 20px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.activity-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.activity-icon {
    position: absolute;
    left: -20px;
    top: 2px;
    width: 12px;
    height: 12px;
}

.activity-icon i {
    color: var(--primary-color);
    font-size: 8px;
}

.activity-content {
    flex: 1;
    padding-left: 15px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-user {
    font-weight: 600;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #6b7280;
}

.activity-text {
    font-size: 0.95rem;
}

.activity-details {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

/* ==================== ADMIN FOOTER ==================== */
.admin-footer {
    background: #fff;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    margin: 20px -20px -20px -20px;
    font-size: 13px;
    color: #6b7280;
    border-radius: 0;
}

.admin-footer a {
    color: #6b7280;
    margin: 0 5px;
}

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

.admin-footer p {
    margin: 0;
    line-height: 1.6;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    background-color: var(--light-color);
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-price {
    margin-top: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ==================== GALLERY SECTION ==================== */
.gallery-section {
    background-color: #fff;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background-color: var(--light-color);
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    background-color: #fff;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

/* ==================== FOOTER (MODERN) ==================== */
.footer {
    background: linear-gradient(180deg, var(--dark-color) 0%, #1a1a1a 100%);
    color: #fff;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer h5 {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
}

.footer-logo img { height: 40px; margin-bottom: 16px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; line-height: 1.5; }
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #fff; }

/* Mobile tweak */
@media (max-width: 767px) {
    .footer { padding: 40px 0 16px; }
    .footer h5 { margin-top: 16px; }
}

/* ==================== FLOATING BUTTONS ==================== */
/* NOTE: Chatbot toggle styles live in assets/css/chatbot.css
   The WhatsApp float is nudged upward so it stacks above the chat toggle. */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;      /* was 40px — lifted above the chatbot toggle */
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: whatsapp-pulse 1.5s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.insurance-float {
    position: fixed;
    bottom: 40px;
    left: 40px;
    right: auto;
    background-color: var(--success-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 500;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    body.public-site {
        padding-top: 70px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-stats {
        justify-content: space-between;
    }

    /* Sidebar slides off-canvas on tablet and mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-toggle {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    body.public-site {
        padding-top: 65px;
    }

    .navbar {
        padding: 10px 0;
        min-height: 65px;
    }

    .hero-section {
        text-align: center;
        min-height: calc(100vh - 65px);
        padding: 30px 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .about-section .row {
        flex-direction: column-reverse;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .admin-header {
        margin: -15px -15px 15px -15px;
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .admin-header .header-left h1 {
        font-size: 1.2rem;
    }

    .admin-header .header-right {
        gap: 10px;
    }

    .main-content {
        padding: 15px;
    }

    .admin-footer {
        margin: 15px -15px -15px -15px;
        padding: 12px 15px;
    }

    .notifications-dropdown {
        min-width: 300px;
        right: -70px;
    }

    .user-name {
        display: none;
    }

    /* WhatsApp float stacks above the chat toggle */
    .whatsapp-float {
        right: 20px;
        bottom: 92px;
    }

    .insurance-float {
        left: 20px;
        right: auto;
        bottom: 40px;
    }
}

@media (max-width: 576px) {
    body.public-site {
        padding-top: 60px;
    }

    .navbar-brand span {
        font-size: 0.85rem;
        margin-left: 5px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .carousel-item img {
        height: 300px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        right: 12px;
        bottom: 84px;
    }

    .insurance-float {
        left: 15px;
        right: auto;
        bottom: 40px;
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .insurance-float::before {
        content: "\1F6E1";
        font-size: 22px;
        line-height: 1;
    }

    .stats-card .card-body {
        flex-direction: column;
        text-align: center;
    }

    .stats-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .main-content {
        padding: 10px;
    }

    .admin-header {
        margin: -10px -10px 10px -10px;
        padding: 10px 12px;
    }

    .admin-footer {
        margin: 10px -10px -10px -10px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .admin-footer .col-md-6 {
        text-align: center !important;
    }

    .notifications-dropdown {
        min-width: 260px;
        right: -50px;
    }

    .avatar-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .footer,
    .sidebar,
    .whatsapp-float,
    .insurance-float,
    .btn:not(.btn-link),
    .admin-header,
    .admin-footer,
    .sidebar-overlay {
        display: none !important;
    }

    body.public-site {
        padding-top: 0 !important;
    }

    body {
        color: #000;
    }

    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .admin-container {
        display: block !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 20px !important;
        width: 100% !important;
    }

    .report-print-header {
        margin-bottom: 16px;
        border-bottom: 2px solid #000;
        padding-bottom: 8px;
    }

    .report-print-header h2,
    .report-print-header h3,
    .report-print-header p {
        margin: 0 0 4px 0;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 12px !important;
    }

    table th,
    table td {
        border: 1px solid #000 !important;
        padding: 6px !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .stats-card {
        background: #f9fafb !important;
        color: #000 !important;
    }

    .stats-card .stats-icon {
        background: #e5e7eb !important;
        color: #000 !important;
    }
}

/* ==================== NOTIFICATIONS — MOBILE RESPONSIVE (v2) ==================== */

/* Base dropdown styling */
.notifications-dropdown {
    max-height: 480px;
    overflow-y: auto;
    min-width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0;
}

.notif-dropdown-header {
    padding: 12px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 2;
}
.notif-dropdown-header strong {
    color: #1f2937;
    font-size: 14px;
}
.notif-dropdown-header .mark-all-read {
    color: #1a73e8;
    text-decoration: none;
    font-size: 12px;
}
.notif-dropdown-header .mark-all-read:hover {
    text-decoration: underline;
}

/* --- Tablet --- */
@media (max-width: 768px) {
    .notifications-dropdown {
        min-width: 320px;
        right: -60px;
    }
}

/* --- MOBILE: detach the dropdown from its anchor and pin to viewport --- */
@media (max-width: 576px) {

    /* Remove the anchor positioning */
    .notifications {
        position: static !important;
    }

    /* Hide the default caret */
    .notifications .dropdown-toggle::after {
        display: none !important;
    }

    /* Force the dropdown to fill the viewport width */
    .notifications .notifications-dropdown,
    .notifications .dropdown-menu.notifications-dropdown {
        position: fixed !important;
        top: 60px !important;              /* sits right below the header */
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: calc(100vh - 80px) !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 12px !important;
        transform: none !important;
        box-shadow: 0 12px 32px rgba(0,0,0,0.2) !important;
        z-index: 1080 !important;
        overflow-y: auto !important;
    }

    /* When Bootstrap shows the dropdown, it may apply a transform via Popper — override it */
    .notifications .notifications-dropdown.show,
    .notifications .dropdown-menu.show.notifications-dropdown {
        transform: none !important;
    }

    /* Slightly larger touch targets on mobile */
    .notification-item {
        padding: 12px 14px;
    }
    .notification-item .notification-content {
        gap: 10px;
    }
    .notification-item .notification-icon {
        width: 30px;
        height: 30px;
    }
    .notification-item .notification-text > div {
        font-size: 13px;
        line-height: 1.4;
    }
    .notification-item .notification-text small {
        font-size: 11px;
    }
    .notif-dropdown-header {
        padding: 11px 14px;
    }
}


/* ==================== NOTIFICATIONS — TEXT WRAP FIX ==================== */

/* Force text to wrap inside notification items */
.notification-item,
.notification-item .notification-content,
.notification-item .notification-text,
.notification-item .notification-text > div {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

.notification-item .notification-content {
    display: flex !important;
    align-items: flex-start !important;
}

.notification-item .notification-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;   /* CRITICAL — this is what allows flex children to shrink */
    overflow: hidden !important;
}

.notification-item .notification-text > div {
    display: block !important;
    line-height: 1.4 !important;
}

/* Keep the icon from pushing text */
.notification-item .notification-icon {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
}

/* Keep badges small and contained */
.notification-item .badge {
    flex: 0 0 auto !important;
}

/* Dropdown itself: constrain to viewport on mobile */
@media (max-width: 576px) {
    .notifications .dropdown-menu,
    .notifications .notifications-dropdown {
        /* These force Bootstrap to respect the width */
        left: 5px !important;
        right: 5px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 10px) !important;
        box-sizing: border-box !important;
    }
    .notifications .dropdown-menu * {
        box-sizing: border-box !important;
    }
    .notification-item {
        padding: 12px !important;
    }
    .notification-item .notification-text > div {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    .notification-item .notification-text small {
        display: block !important;
        margin-top: 4px !important;
        font-size: 11px !important;
    }
}

/* ==================== CHATBOT SUGGESTION CHIPS ==================== */
/* NOTE: Additional chatbot styles live in assets/css/chatbot.css
   These chips are also used inside the chat window; keeping a copy
   here is harmless and provides a safe fallback if chatbot.css
   fails to load. */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-left: 4px;
}
.chat-suggestions .chip {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #c6dafc;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.chat-suggestions .chip:hover {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}
.chat-suggestions .chip:active {
    transform: scale(0.96);
}


/* ==================== NOTIFICATION DROPDOWN (ADMIN) ==================== */

.notifications-dropdown {
    min-width: 350px;
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.notif-dropdown-header {
    padding: 12px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    border-radius: 10px 10px 0 0;
}
.notif-dropdown-header strong {
    color: #1f2937;
    font-size: 14px;
}
.notif-dropdown-header .mark-all-read {
    color: #1a73e8;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}
.notif-dropdown-header .mark-all-read:hover {
    text-decoration: underline;
}

.notif-view-all {
    color: #1a73e8 !important;
    font-weight: 500;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 0 0 10px 10px;
}
.notif-view-all:hover {
    background: #f0f7ff !important;
}

.notification-item {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.notification-item .notification-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.notification-item .notification-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
}
.notification-item .notification-text {
    flex: 1 1 auto;
    min-width: 0;
}
.notification-item .notification-text > div {
    font-size: 13px;
    line-height: 1.4;
    color: #1f2937;
}
.notification-item .notification-text small {
    font-size: 11px;
}
.notification-item.unread {
    background: #f0f7ff;
    border-left: 3px solid #1a73e8;
}

/* Full page notification center */
.notif-full-list .list-group-item {
    border-left: 3px solid transparent;
    padding: 14px 16px;
    transition: background 0.15s;
}
.notif-full-list .list-group-item.list-group-item-info {
    background: #f0f7ff;
    border-left-color: #1a73e8;
}
.notif-full-list .notif-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.notif-full-list .notif-content {
    min-width: 0;
}
.notif-full-list .notif-message {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
}
.notif-full-list .notif-actions {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
}

/* Mobile */
@media (max-width: 768px) {
    .notifications-dropdown { min-width: 320px; right: -60px; }
}
@media (max-width: 576px) {
    .notifications { position: static; }
    .notifications-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        min-width: 0 !important;
        max-height: calc(100vh - 80px) !important;
        transform: none !important;
    }
    .notif-full-list .list-group-item {
        padding: 12px;
    }
    .notif-full-list .notif-message {
        font-size: 13px;
    }
}

/* ==================== LANGUAGE SWITCHER ==================== */
.language-switcher { position: relative; margin-right: 10px; }
.language-switcher .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}
.language-switcher .dropdown-toggle:hover {
    background: #f0f0f0;
    color: #1a73e8;
    text-decoration: none;
}
.language-switcher .lang-label {
    font-size: 12px;
    font-weight: 600;
}
.language-switcher .dropdown-menu {
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 14px;
}
.language-switcher .dropdown-item .flag {
    font-size: 16px;
}
.language-switcher .dropdown-item.active {
    background: #f0f7ff;
    color: #1a73e8;
    font-weight: 500;
}
@media (max-width: 576px) {
    .language-switcher .lang-label { display: none; }
    .language-switcher .dropdown-toggle { padding: 5px 8px; }
}