﻿
.floating-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--white);
    padding: 12px 8px;
    border-radius: 40px;
    box-shadow: var(--hover-shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    pointer-events: auto;
}

    .floating-sidebar:hover {
        box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
        transform: translateY(-50%) scale(1.05);
    }

.sidebar-item {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
}

    .sidebar-item:hover {
        transform: scale(1.15);
    }

    .sidebar-item.whatsapp {
        background: #25D366;
        color: white;
    }

        .sidebar-item.whatsapp:hover {
            box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
        }

    .sidebar-item.facebook {
        background: #1877F2;
        color: white;
    }

        .sidebar-item.facebook:hover {
            box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
        }

    .sidebar-item.instagram {
        background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
        color: white;
    }

        .sidebar-item.instagram:hover {
            box-shadow: 0 10px 20px rgba(214, 41, 118, 0.3);
        }

    .sidebar-item.address {
        background: var(--gradient);
        color: white;
    }

        .sidebar-item.address:hover {
            box-shadow: 0 10px 20px rgba(233, 30, 140, 0.3);
        }

    .sidebar-item svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
        stroke: none;
    }

    .sidebar-item .sidebar-tooltip {
        position: absolute;
        right: 55px;
        background: white;
        color: var(--dark);
        padding: 6px 12px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        pointer-events: none;
        opacity: 0;
        transition: all 0.3s ease;
        border: 1px solid var(--border);
        z-index: 10001;
    }

    .sidebar-item:hover .sidebar-tooltip {
        opacity: 1;
        right: 60px;
    }

/* Address Popup Modal */
.address-popup {
    display: none;
    position: fixed;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--hover-shadow);
    z-index: 10000;
    width: 340px;
    overflow: hidden;
    animation: slideInRight 0.3s ease;
    border: 1px solid var(--border);
}

    .address-popup.show {
        display: block;
    }

.address-header {
    background: var(--gradient);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .address-header h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        color: white;
    }

.address-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

    .address-close:hover {
        background: rgba(255,255,255,0.3);
        transform: rotate(90deg);
    }

.address-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.address-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

    .address-detail:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.address-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.address-text {
    flex: 1;
}

    .address-text h4 {
        font-size: 16px;
        font-weight: 600;
        color: var(--dark);
        margin-bottom: 5px;
    }

    .address-text p {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.5;
        margin-bottom: 5px;
    }

    .address-text a {
        color: var(--purple);
        text-decoration: none;
        font-weight: 500;
    }

        .address-text a:hover {
            color: var(--pink);
            text-decoration: underline;
        }

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: var(--purple);
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
}

    .map-link:hover {
        color: var(--pink);
    }

/* Floating Action Buttons - Bottom */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .floating-buttons.left {
        left: 25px;
    }

    .floating-buttons.right {
        right: 25px;
    }

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

    .floating-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 10px 25px rgba(233, 30, 140, 0.4);
    }

    .floating-btn.live-chat {
        background: #25D366;
        animation: pulse-whatsapp 2s infinite;
    }

    .floating-btn.quick-contact {
        background: var(--gradient);
        animation: pulse 2s infinite;
    }

    .floating-btn svg {
        width: 28px;
        height: 28px;
        stroke: white;
        fill: none;
    }

    .floating-btn.live-chat svg {
        fill: white;
        stroke: none;
    }

    .floating-btn .btn-tooltip {
        position: absolute;
        background: white;
        color: var(--dark);
        padding: 6px 12px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        pointer-events: none;
        opacity: 0;
        transition: all 0.3s ease;
        border: 1px solid var(--border);
        z-index: 9999;
    }

.floating-buttons.left .floating-btn .btn-tooltip {
    left: 65px;
}

.floating-buttons.right .floating-btn .btn-tooltip {
    right: 65px;
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
}

/* Pulse Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(233, 30, 140, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 140, 0);
    }
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-btn .notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--pink);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Live Chat Modal */
.chat-modal {
    display: none;
    position: fixed;
    bottom: 95px;
    left: 25px;
    width: 320px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--hover-shadow);
    z-index: 10000;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
    border: 1px solid var(--border);
}

    .chat-modal.show {
        display: block;
    }

.chat-header {
    background: #25D366;
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chat-header h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        color: white;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .chat-header h3 svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

.chat-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

    .chat-close:hover {
        background: rgba(255,255,255,0.3);
        transform: rotate(90deg);
    }

.chat-body {
    padding: 20px;
    background: #f0f2f5;
    max-height: 350px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
}

    .chat-message.bot {
        justify-content: flex-start;
    }

    .chat-message.user {
        justify-content: flex-end;
    }

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background: white;
    color: var(--text);
    border-bottom-left-radius: 5px;
}

.chat-message.user .message-content {
    background: #25D366;
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-timestamp {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

    .chat-footer input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid var(--border);
        border-radius: 25px;
        font-size: 14px;
        font-family: 'DM Sans', sans-serif;
    }

        .chat-footer input:focus {
            outline: none;
            border-color: #25D366;
        }

    .chat-footer button {
        background: #25D366;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .chat-footer button:hover {
            transform: scale(1.1);
            background: #128C7E;
        }

        .chat-footer button svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

/* Quick Contact Modal */
.quick-contact-modal {
    display: none;
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 340px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--hover-shadow);
    z-index: 10000;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
    border: 1px solid var(--border);
}

    .quick-contact-modal.show {
        display: block;
    }

.quick-contact-header {
    background: var(--gradient);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .quick-contact-header h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        color: white;
    }

.quick-contact-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

    .quick-contact-close:hover {
        background: rgba(255,255,255,0.3);
        transform: rotate(90deg);
    }

.quick-contact-body {
    padding: 20px;
}

.quick-contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

    .contact-option:hover {
        border-color: var(--pink);
        transform: translateX(5px);
        box-shadow: var(--card-shadow);
    }

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-details {
    flex: 1;
}

    .contact-details h4 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 3px;
        color: var(--dark);
    }

    .contact-details p {
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 2px;
    }

    .contact-details small {
        font-size: 11px;
        color: var(--purple);
    }

.contact-option.whatsapp:hover .contact-icon {
    background: #25D366;
    color: white;
}

.contact-option.phone:hover .contact-icon {
    background: var(--purple);
    color: white;
}

.contact-option.email:hover .contact-icon {
    background: var(--pink);
    color: white;
}

/* Inquiry Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 46, 0.8);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .modal-overlay.show {
        display: flex;
    }

.modal-container {
    width: 90%;
    max-width: 1000px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--hover-shadow);
    animation: slideUp 0.4s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-background {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('/Footor Bottom.png');
    background-size: cover;
    background-position: center;
}

.modal-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2.5rem 2rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Two Column Modal Layout */
.modal-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 2;
    min-height: 600px;
}

/* Left Column - Refer & Earn */
.modal-left-col {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.refer-content {
    width: 100%;
    text-align: center;
}

.refer-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.refer-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #fff, var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.refer-description {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.95;
}

    .refer-description strong {
        color: white;
        background: rgba(233, 30, 140, 0.4);
        padding: 0.2rem 0.6rem;
        border-radius: 30px;
        font-weight: 700;
    }

.refer-benefits {
    margin: 1.5rem 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: white;
    font-size: 0.95rem;
}

    .benefit-item:last-child {
        margin-bottom: 0;
    }

.benefit-icon {
    width: 22px;
    height: 22px;
    background: var(--gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}

.refer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--purple);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .refer-cta:hover {
        background: var(--gradient);
        color: white;
        transform: translateY(-2px);
        gap: 0.75rem;
        box-shadow: 0 8px 25px rgba(233, 30, 140, 0.4);
    }

.refer-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Right Column - Inquiry Form */
.modal-right-col {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    max-height: 600px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    color: white;
}

.modal-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.4rem;
        color: white;
        letter-spacing: 0.3px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1.2rem;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-family: 'DM Sans', sans-serif;
        font-size: 1rem;
        transition: all 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--pink-light);
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.2);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.95rem;
        }

.modal-submit-btn {
    background: white;
    color: var(--purple);
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .modal-submit-btn:hover {
        background: var(--gradient);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(233, 30, 140, 0.4);
    }

.modal-footer-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px) translateY(-50%);
        opacity: 0;
    }

    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* User Menu Styles */
.nav-user-dropdown {
    position: relative;
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
}

    .user-menu.show {
        display: block;
    }

    .user-menu a, .user-menu button {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid var(--border);
        color: var(--text);
        text-align: left;
        width: 100%;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.2s;
    }

        .user-menu a:last-child, .user-menu button:last-child {
            border-bottom: none;
        }

        .user-menu a:hover, .user-menu button:hover {
            background: var(--gradient-soft);
            color: var(--purple);
        }

    .user-menu .logout-btn:hover {
        color: #E11D48;
    }

    .user-menu .admin-link {
        color: var(--purple);
        font-weight: 600;
    }

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Responsive adjustments for the advanced features */
@media (max-width: 768px) {
    .floating-sidebar {
        right: 10px;
        padding: 8px 5px;
        gap: 8px;
    }

    .sidebar-item {
        width: 38px;
        height: 38px;
    }

        .sidebar-item svg {
            width: 18px;
            height: 18px;
        }

        .sidebar-item .sidebar-tooltip {
            display: none;
        }

    .address-popup {
        right: 58px;
        width: 280px;
    }

    .floating-buttons.left {
        left: 15px;
    }

    .floating-buttons.right {
        right: 15px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

        .floating-btn svg {
            width: 24px;
            height: 24px;
        }

    .quick-contact-modal {
        right: 15px;
        width: 300px;
    }

    .chat-modal {
        left: 15px;
        width: 280px;
    }

    .modal-split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .address-popup {
        right: 52px;
        width: 250px;
    }

    .quick-contact-modal {
        width: 260px;
    }

    .chat-modal {
        width: 250px;
    }
}
