:root {
    --color-primary: #fff;
    --color-secondary: #222222ff;
    --color-comp: #2851cbff;
    --font-primary: sans-serif;
    --color-headerhover: #7f7f7fff;
    --accent: #10b981;
    --warning: #f59e0b;
    --warning-bg: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
    font-family: 'Poppins', sans-serif;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
    font-size: 62.5%;
}

body {
    background: whitesmoke;
    overflow-x: hidden;
}

.profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.profile span {
    font-size: 1rem;
    font-weight: 500;
    font-size: 1.6rem;
}

.analytics-toggle {
    display: flex;
    justify-content: center;
    margin: 9rem auto;
    padding: 1rem;
    background: var(--color-primary);
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.08);
    max-width: 40rem;
    margin-bottom: 1rem;
}

.toggle-container {
    display: flex;
    width: 100%;
    background: var(--color-secondary);
    border-radius: 0.8rem;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    color: var(--color-primary);
    padding: 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-btn:hover {
    background: var(--color-headerhover);
    color: #fff;
}

.toggle-btn.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* ==========================
   ANALYTICS DASHBOARD LAYOUT
========================== */

.analytics-dashboard {
    width: 95%;
    max-width: 120rem;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* KPI GRID */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.kpi-card {
    background: var(--color-primary);
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.05);
}

.kpi-card h4 {
    font-size: 1.4rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.kpi-value {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text);
}

.kpi-value.accent {
    color: var(--accent);
}

.kpi-card small {
    color: var(--muted);
    font-size: 1.2rem;
}

/* INCOMING ORDERS */
.incoming-orders {
    background: var(--color-primary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.8rem;
    color: var(--color-secondary);
}

.refresh-btn {
    background: var(--color-comp);
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 0.6rem;
    cursor: pointer;
    font-size: 1.4rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--warning-bg);
    padding: 1.5rem;
    border-radius: 0.8rem;
}

.order-item h4 {
    font-size: 1.5rem;
    color: var(--text);
}

.order-item p {
    font-size: 1.3rem;
    color: var(--muted);
}

.accept-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem 1.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.3rem;
}

.accept-btn:hover {
    opacity: 0.9;
}

/* RECENT ACTIVITY */
.recent-activity {
    background: var(--color-primary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.05);
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.activity-table th,
.activity-table td {
    text-align: left;
    padding: 1rem 0.8rem;
}

.activity-table th {
    color: var(--muted);
    border-bottom: 2px solid #f0f0f0;
}

.activity-table td {
    border-bottom: 1px solid #f0f0f0;
    color: var(--text);
}

.view-all {
    font-size: 1.3rem;
    color: var(--color-comp);
    text-decoration: underline;
}

.view-all:hover {
    color: var(--accent);
}

/* ==============================
   VISUAL PERFORMANCE MODULE
============================== */

.visual-performance {
    background: var(--color-primary);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.05);
}

.visual-performance .section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.visual-performance h3 {
    font-size: 1.8rem;
    color: var(--color-secondary);
}

.subtext {
    font-size: 1.3rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 35rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
}

.payout-status {
    background: var(--color-primary);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.05);
}

.payout-content h3 {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.payout-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.payout-details .detail p {
    font-size: 1.4rem;
    color: var(--muted);
}

.payout-details .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.payout-details .date {
    font-size: 1.6rem;
    color: var(--text);
}

.payout-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.view-history {
    font-size: 1.4rem;
    color: var(--color-comp);
    text-decoration: underline;
}

.view-history:hover {
    color: var(--accent);
}

.request-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem 1.8rem;
    border-radius: 0.6rem;
    font-size: 1.4rem;
    cursor: pointer;
    font-weight: 500;
}

.request-btn:hover {
    opacity: 0.9;
}

/* Disabled state: show circle-with-slash cursor and dim the button */
.request-btn.disabled,
.request-btn:disabled {
    cursor: not-allowed;
    /* typically displayed as a circle with a slash */
    opacity: 0.6;
    pointer-events: none;
}

.request-btn.disabled:hover,
.request-btn:disabled:hover {
    opacity: 0.6;
}

/* Services list and modal styles */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-card {
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.service-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.servaction .edit-btn {
    background: var(--accent);
    border-radius: 0.15rem;
}

.servaction .delete-btn {
    background: #ef4444;
}

/* =======================================================
   ✨ CLEAN MODAL + FORM REFINEMENT (FIXED LABELS)
   ======================================================= */

/* === Modal Overlay === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* === Modal Box === */
.modal-content {
    padding: 2rem 2.5rem;
    border-radius: 14px;
    width: 90%;
    max-width: 550px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    animation: fadeIn 0.25s ease-out;
    overflow-y: auto;
    max-height: 90vh;
}

/* === Close Button === */
.close-butn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-butn:hover {
    color: #000;
}

/* === Title === */
#modalTitle,
.form-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

/* === Form Layout === */
.form-pane {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* === Form Group === */
.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.4rem;
}

/* === Inputs, Textareas, Selects === */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background: #fafafa;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2851cb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40, 81, 203, 0.08);
}

/* === Floating Labels === */
.form-group label {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #888;
    background: #fff;
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Float labels on focus or filled */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -8px;
    left: 10px;
    font-size: 0.78rem;
    color: #2851cb;
    background: #fff;
    padding: 0 4px;
}

/* === FIX for SELECT labels === */
.form-group select+label {
    position: static;
    margin-bottom: 6px;
    color: #555;
    font-size: 0.9rem;
}

/* === FILE UPLOAD section === */
.file-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-upload .file-label {
    position: static;
    margin-bottom: 4px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.file-upload input[type="file"] {
    padding: 8px;
    border: 1px dashed #bbb;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload input[type="file"]:hover {
    border-color: #2851cb;
    background: #fff;
}

.availability-group {
    position: relative;
    margin-top: 2.5rem;
    text-align: left;
    width: 100%;
}

.availability-group .availability-label {
    position: relative;
    display: inline-block;
    margin-bottom: 1.4rem;
    font-size: 1.45rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.4px;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.availability-group .availability-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Flex layout for availability buttons */
.availability-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    width: 100%;
}

/* reset nested label inheritance from .form-group label */
.availability-options label {
    all: unset;
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3rem;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    text-align: center;
    user-select: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* Hide native checkbox */
.availability-options input[type="checkbox"] {
    display: none;
}

/* hover and checked visuals */
.availability-options label:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.availability-options input[type="checkbox"]:checked+label {
    background: linear-gradient(90deg, #00c9a7, #0f9d58);
    border-color: transparent;
    box-shadow: 0 0 1rem rgba(0, 201, 167, 0.5);
    transform: scale(1.05);
}

/* === Buttons === */
.btn-primary {
    background: #2851cb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: #1f3da2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 81, 203, 0.25);
}

/* === Scrollbar Cleanup (for modal) === */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* === Mobile-Friendly === */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: 10px;
    }
}

.recent-messages {
    background: var(--color-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.message {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
    cursor: pointer;
}

.message:hover {
    background: #eef6ff;
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.message-info h4 {
    text-align: left;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.message-info .message-snippet {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
}

.message .time {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    align-self: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.close-butn {
    cursor: pointer;
    float: right;
    font-size: 1.2rem;
}

#replyText {
    width: 100%;
    height: 80px;
    margin-top: 10px;
}

.view-all {
    font-size: 1.2rem;
    color: var(--accent);
}

.analytics-section {
    display: none;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.analytics-section.active {
    display: block;
}

/* === Payout Modal === */
.payout-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.payout-modal.active {
    display: flex;
}

.payout-modal__content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 360px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.25s ease-in-out;
}

.payout-modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    text-align: center;
}

.payout-modal__form {
    display: flex;
    flex-direction: column;
}

.payout-modal__label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.payout-modal__input {
    padding: 0.65rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: border 0.2s ease;
}

.payout-modal__input:focus {
    border-color: #2851cb;
    outline: none;
}

.payout-modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.payout-modal__btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.payout-modal__btn--primary {
    background-color: #2851cb;
    color: #fff;
}

.payout-modal__btn--primary:hover {
    background-color: #1f3fa3;
}

.payout-modal__btn--secondary {
    background-color: #f1f1f1;
    color: #333;
}

.payout-modal__btn--secondary:hover {
    background-color: #e0e0e0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Service Payout Modal === */
.service-payout-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.service-payout-modal.active {
    display: flex;
}

.service-payout-modal__content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 360px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.25s ease-in-out;
}

.service-payout-modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    text-align: center;
}

.service-payout-modal__form {
    display: flex;
    flex-direction: column;
}

.service-payout-modal__label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.service-payout-modal__input {
    padding: 0.65rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: border 0.2s ease;
}

.service-payout-modal__input:focus {
    border-color: #2851cb;
    outline: none;
}

.service-payout-modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.service-payout-modal__btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.service-payout-modal__btn--primary {
    background-color: #2851cb;
    color: #fff;
}

.service-payout-modal__btn--primary:hover {
    background-color: #1f3fa3;
}

.service-payout-modal__btn--secondary {
    background-color: #f1f1f1;
    color: #333;
}

.service-payout-modal__btn--secondary:hover {
    background-color: #e0e0e0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


footer {
    background: #111827;
    color: #f3f4f6;
    padding: 60px 20px 30px;
    text-align: center;
    transform: translateY(100%);
    opacity: 1;
    transition: all 0.8s ease;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #f9fafb;
}

.footer-logo p {
    font-size: 0.95rem;
    color: #d1d5db;
}

.footer-links h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #f3f4f6;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #f3f4f6;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    color: #9ca3af;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f3f4f6;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #374151;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

/* ================================
   FLOATING CHAT WIDGET STYLES
   ================================ */

.floating-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
}

.floating-chat-btn .unread-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    color: #ef4444;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.floating-chat-widget {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 320px;
    height: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 998;
}

.floating-chat-widget.floating-chat-expanded {
    width: 700px;
    height: 600px;
    max-height: 85vh;
}

.floating-chat-widget.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-chat-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.floating-chat-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.chat-unread-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.chat-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.chat-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.floating-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.floating-chat-list {
    flex: 1;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.floating-chat-area {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.floating-chat-expanded .floating-chat-body {
    flex-direction: row;
}

.floating-chat-expanded .floating-chat-list {
    max-width: 280px;
    border-right: 1px solid #e5e7eb;
}

.floating-chat-expanded .floating-chat-area {
    display: flex;
}

.floating-chat-expanded.open .floating-chat-area.active {
    display: flex;
}

.conversation-header {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.chat-search {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    outline: none;
}

.chat-search:focus {
    border-color: #10b981;
}

.floating-conversations {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.floating-conversations .empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
}

.conversation-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.conversation-item:hover {
    background: #f9fafb;
}

.conversation-item.active {
    background: #f0fdf4;
    border-left: 3px solid #10b981;
}

.conversation-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
}

.conversation-item-preview {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-chat-header-area {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-list-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #10b981;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.back-to-list-btn:hover {
    color: #059669;
}

.floating-chat-header-area h5 {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    color: #111827;
}

.floating-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-chat-messages .empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
}

.floating-chat-messages .message {
    max-width: 85%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    word-wrap: break-word;
}

.floating-chat-messages .message.sent {
    background: #10b981;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.floating-chat-messages .message.received {
    background: #f3f4f6;
    color: #111827;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.floating-chat-messages .message .time {
    display: block;
    font-size: 0.65rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.floating-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.floating-chat-input input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}

.floating-chat-input input:focus {
    border-color: #10b981;
}

.floating-chat-input button {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s;
}

.floating-chat-input button:hover {
    background: #059669;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .floating-chat-btn {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-chat-widget {
        bottom: 5rem;
        right: 1rem;
        width: 90vw;
        max-width: 320px;
    }
}