/* =======================================================================
   Custom CSS for MS House of Lawyers
   Replaces Canvas 7.3.1 theme — works with Bootstrap 5 + Swiper + Bootstrap Icons
   ======================================================================= */

/* ---- Root Variables ---- */
:root {
    --theme-color: #1abc9c;
    --theme-color-dark: #16a085;
    --theme-color-rgb: 26, 188, 156;
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Playfair Display', serif;
}

/* ---- General ---- */
body {
    font-family: var(--body-font);
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--theme-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--theme-color-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.lead {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}


/* =======================================================================
   Header & Navigation
   ======================================================================= */

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

#header.header-scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    position: relative;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--theme-color);
}

.navbar-toggler {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    z-index: 10;
}

.navbar-toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
        z-index: 100;
    }

    .header-nav.show {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0 1.5rem;
    }

    .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
    }
}


/* =======================================================================
   Hero Slider
   ======================================================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.slide-content h2 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Smooth fade — let Swiper control opacity; hide inactive slides cleanly */
.hero-slider .swiper-slide:not(.swiper-slide-active) .slide-bg,
.hero-slider .swiper-slide:not(.swiper-slide-active) .slide-overlay,
.hero-slider .swiper-slide:not(.swiper-slide-active) .slide-content {
    opacity: 0;
}

.hero-slider .slide-bg,
.hero-slider .slide-overlay,
.hero-slider .slide-content {
    transition: opacity 1.5s ease;
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    color: rgba(255,255,255,0.7);
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    color: #fff;
}

@media (max-width: 767.98px) {
    .hero-slider {
        height: 60vh;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }
}


/* =======================================================================
   Sections & Content Layout
   ======================================================================= */

.section {
    padding: 4rem 0;
}

.content-wrap {
    padding: 4rem 0;
}

.heading-block {
    margin-bottom: 2.5rem;
}

.heading-block h1 {
    font-family: var(--heading-font);
}

.heading-block h3 {
    font-family: var(--heading-font);
    position: relative;
    padding-bottom: 0.75rem;
}

.heading-block.text-center h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--theme-color);
    margin: 0.75rem auto 0;
}

/* Max-width container variant */
.mw-md {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .section {
        padding: 3rem 0;
    }

    .content-wrap {
        padding: 3rem 0;
    }

    .heading-block {
        margin-bottom: 1.5rem;
    }
}


/* =======================================================================
   Counter / Stats Section
   ======================================================================= */

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .counter-value {
        font-size: 2rem;
    }
}


/* =======================================================================
   Feature Boxes (Practice Areas)
   ======================================================================= */

#section-practice .feature-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#section-practice .feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.fbox-media {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.fbox-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#section-practice .feature-box:hover .fbox-media img {
    transform: scale(1.08);
}

.fbox-content {
    padding: 1.25rem;
    flex: 1;
}

.fbox-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.fbox-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}


/* =======================================================================
   Team Section
   ======================================================================= */

#section-team {
    background-color: #f8f9fa;
}

/* Accordion team cards */
.team-accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.team-accordion-item .accordion-button {
    background-color: #fff;
    box-shadow: none;
    padding: 1rem 1.25rem;
}

.team-accordion-item .accordion-button:not(.collapsed) {
    background-color: #fff;
    color: inherit;
    box-shadow: none;
}

.team-accordion-item .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.team-acc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-acc-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.team-accordion-item .accordion-button:not(.collapsed) .team-acc-photo {
    filter: grayscale(0%);
}

.team-acc-info h4 {
    margin-bottom: 0.1rem;
    font-size: 1.1rem;
}

.team-acc-info span {
    color: var(--theme-color);
    font-size: 0.9rem;
}

.team-accordion-item .accordion-body {
    padding: 0 1.25rem 1.25rem 5.25rem;
}

.team-accordion-item .accordion-body p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.team-accordion-item .accordion-body p:last-child {
    margin-bottom: 0;
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #555;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--theme-color);
    color: #fff;
}


/* =======================================================================
   Buttons
   ======================================================================= */

.btn-theme {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

.btn-theme:hover {
    background: var(--theme-color-dark);
    border-color: var(--theme-color-dark);
    color: #fff;
}


/* =======================================================================
   Testimonials / Quote Bubbles
   ======================================================================= */

.quote-bubble {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.quote-bubble p {
    margin-bottom: 0;
}

.testimonial-card {
    background-color: #f8f9fa;
    border-left: 3px solid var(--theme-color);
    color: #333;
}

.initials-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    flex-shrink: 0;
}


/* =======================================================================
   Contact Form Section
   ======================================================================= */

#section-contact label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}


/* =======================================================================
   Contact Info Cards
   ======================================================================= */

.contact-info-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--theme-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-info-card h4 {
    font-size: 1.1rem;
    color: #333;
}

.contact-info-card address,
.contact-info-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}


/* =======================================================================
   Page Title (Blogs, Testimonials inner pages)
   ======================================================================= */

.page-title {
    padding: 2.5rem 0;
    background: #f8f9fa;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title-content h1 {
    font-family: var(--heading-font);
    margin-bottom: 0.25rem;
}

.page-title-content span {
    color: #666;
}

@media (max-width: 767.98px) {
    .page-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =======================================================================
   Blog Entries (Card List & Single Post)
   ======================================================================= */

.blog-card {
    margin-bottom: 2rem;
}

.blog-card .grid-inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card .grid-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card .entry-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.blog-card .entry-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-card .entry-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-title h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.entry-title h2 a {
    color: #333;
    text-decoration: none;
}

.entry-title h2 a:hover {
    color: var(--theme-color);
}

.blog-card .entry-title,
.blog-card .entry-meta,
.blog-card .entry-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.blog-card .entry-title {
    padding-top: 1rem;
}

.blog-card .entry-content {
    padding-bottom: 1.25rem;
    flex: 1;
}

.entry-meta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.entry-meta ul li i {
    margin-right: 0.25rem;
}

.entry-content p {
    color: #555;
    font-size: 0.9rem;
}

.more-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Single Blog Post */
.single-post .entry {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .entry-title h2 {
    font-size: 1.75rem;
    font-family: var(--heading-font);
}

.single-post .entry-image {
    margin-bottom: 2rem;
}

.single-post .entry-image img {
    width: 100%;
    border-radius: 0.5rem;
}

/* Blog Image Slider */
.blog-slider {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.blog-slider .swiper-slide img {
    width: 100%;
    display: block;
    margin-bottom: 0;
}

.blog-slider .swiper-button-prev,
.blog-slider .swiper-button-next {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.blog-slider .swiper-pagination-bullet-active {
    background: var(--theme-color);
}

/* Blog content — constrain all child elements */
.single-post .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-post .entry-content img {
    border-radius: 0.375rem;
    max-width: 100%;
    height: auto;
}

.single-post .entry-content iframe,
.single-post .entry-content video,
.single-post .entry-content embed,
.single-post .entry-content object,
.single-post .entry-content table {
    max-width: 100%;
}

.single-post .entry-content * {
    max-width: 100%;
    box-sizing: border-box;
}


/* =======================================================================
   Footer
   ======================================================================= */

#footer {
    background: #1a1a2e;
    color: #bbb;
    padding-top: 4rem;
}

#footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

#footer p,
#footer address {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #bbb;
}

#footer a {
    color: #bbb;
}

#footer a:hover {
    color: #fff;
}

#copyrights {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #888;
}

#copyrights a {
    color: #999;
}

#copyrights a:hover {
    color: #fff;
}


/* =======================================================================
   Go to Top Button
   ======================================================================= */

#gotoTop {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#gotoTop.visible {
    opacity: 1;
    visibility: visible;
}

#gotoTop:hover {
    background: var(--theme-color-dark);
    transform: translateY(-3px);
}


/* =======================================================================
   Animations (fadeInUp on scroll)
   ======================================================================= */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}


/* =======================================================================
   Alert / Callout (for error messages)
   ======================================================================= */

.callout-danger {
    background: #f8d7da;
    color: #842029;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid #f5c2c7;
}


/* =======================================================================
   Disclaimer Page Hero (standalone full-height section)
   ======================================================================= */

.disclaimer-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: auto;
}

.disclaimer-hero .hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(20%);
    z-index: 0;
}

.disclaimer-hero .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 3rem 0;
}

.disclaimer-hero h3 {
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.disclaimer-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.disclaimer-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
}

.disclaimer-list li i {
    position: absolute;
    left: 0;
    top: 0.65rem;
    color: var(--theme-color);
}

.disclaimer-list li span {
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .disclaimer-hero h3 {
        font-size: 1.5rem;
    }

    .disclaimer-list li {
        font-size: 0.9rem;
    }
}


/* =======================================================================
   Chat Widget - Floating Bubble & Window
   ======================================================================= */

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1abc9c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26, 188, 156, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: chatPulse 2s infinite;
}

.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(26, 188, 156, 0.5);
}

.chat-bubble-offline {
    background: #95a5a6;
    box-shadow: 0 4px 16px rgba(149, 165, 166, 0.4);
    animation: none;
}

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(26, 188, 156, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(26, 188, 156, 0.6); }
}

.chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    height: 520px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #1abc9c;
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header span {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Pre-chat form */
.chat-pre-form {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.chat-pre-form-icon {
    font-size: 3rem;
    color: #1abc9c;
    margin-bottom: 1rem;
}

.chat-pre-form .form-control {
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.chat-pre-form .btn-primary {
    background: #1abc9c;
    border-color: #1abc9c;
    border-radius: 0.5rem;
    padding: 0.6rem;
    font-weight: 600;
}

.chat-pre-form .btn-primary:hover {
    background: #16a085;
    border-color: #16a085;
}

/* Waiting state */
.chat-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.chat-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #1abc9c;
    border-radius: 50%;
    animation: chatSpin 0.8s linear infinite;
}

.chat-offline-icon {
    font-size: 3rem;
    color: #95a5a6;
}

@keyframes chatSpin {
    to { transform: rotate(360deg); }
}

/* Timer bar */
.chat-timer-bar {
    height: 4px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.chat-timer-fill {
    height: 100%;
    width: 100%;
    background: #1abc9c;
    transition: width 1s linear;
}

.chat-timer-fill.chat-timer-warning {
    background: #e74c3c;
}

.chat-timer-text {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    padding: 4px 0;
    flex-shrink: 0;
    background: #f8f9fa;
}

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.chat-message-visitor {
    align-self: flex-end;
}

.chat-message-lawyer {
    align-self: flex-start;
}

.chat-message-text {
    padding: 0.5rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-message-visitor .chat-message-text {
    background: #1abc9c;
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}

.chat-message-lawyer .chat-message-text {
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 0.25rem;
}

.chat-message-time {
    font-size: 0.65rem;
    color: #999;
    margin-top: 2px;
    padding: 0 4px;
}

.chat-message-visitor .chat-message-time {
    text-align: right;
}

.chat-message-system {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    padding: 0.5rem;
    font-style: italic;
}

/* Input area */
.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}

.chat-input-area .form-control {
    border-radius: 1.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.chat-input-area .btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #1abc9c;
    border-color: #1abc9c;
}

.chat-input-area .btn:hover {
    background: #16a085;
    border-color: #16a085;
}

/* Payment plan cards */
.chat-payment-section {
    padding: 1rem;
    text-align: center;
}

.chat-plans {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.chat-plan-card {
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 1rem;
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-plan-card:hover {
    border-color: #1abc9c;
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.15);
}

.chat-plan-duration {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.chat-plan-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1abc9c;
    margin: 0.25rem 0;
}

.chat-plan-desc {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.chat-pay-btn {
    border-color: #1abc9c;
    color: #1abc9c;
}

.chat-pay-btn:hover {
    background: #1abc9c;
    color: #fff;
}

/* Mobile responsive - chat goes full screen */
@media (max-width: 575.98px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chat-bubble {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
}


/* =======================================================================
   Chat Dashboard - Admin Page
   ======================================================================= */

.chat-dashboard-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.chat-dashboard-toggle .custom-switch {
    transform: scale(1.3);
}

.chat-queue-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.chat-queue-card:hover {
    background: #f8f9fa;
}

.chat-queue-info h6 {
    margin-bottom: 0.25rem;
}

.chat-queue-info small {
    color: #6c757d;
}

.chat-dashboard-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.chat-dashboard-input {
    display: flex;
    gap: 0.5rem;
}

.chat-dashboard-input .form-control {
    border-radius: 0.375rem;
}

.chat-dashboard-input .btn {
    border-radius: 0.375rem;
}

.chat-dashboard-timer {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-dashboard-timer.warning {
    color: #e74c3c;
}
