/* Site Navigator - Exact Robofy Design Match */
:root {
    --sn-primary: #ED1F24;
    --sn-bg: #ffffff;
    --sn-text: #1e293b;
    --sn-grey: #64748b;
    --sn-light-grey: #f8fafc;
    --sn-border: #e2e8f0;
    --sn-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Launcher */
.sn-launcher-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sn-launcher-label {
    background: white;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: var(--sn-shadow);
    font-size: 13px;
    font-weight: 600;
    color: var(--sn-text);
    border: 1px solid var(--sn-border);
    animation: sn-float 3s infinite ease-in-out;
}

.sn-launcher {
    width: 60px;
    height: 60px;
    background: var(--sn-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: var(--sn-shadow);
    transition: transform 0.2s;
    position: relative;
}

.sn-launcher:hover { transform: scale(1.05); }

.sn-launcher-icon, .sn-launcher-close {
    position: absolute;
    transition: all 0.3s;
}

.sn-launcher-close {
    opacity: 0;
    transform: scale(0.5);
}

.sn-launcher-wrap.is-open .sn-launcher-icon {
    opacity: 0;
    transform: scale(0.5);
}

.sn-launcher-wrap.is-open .sn-launcher-close {
    opacity: 1;
    transform: scale(1);
}

.sn-launcher-wrap.is-open .sn-launcher-label {
    display: none;
}

/* Window */
.sn-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 20px;
    box-shadow: var(--sn-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sn-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header */
.sn-header {
    background: var(--sn-primary);
    padding: 24px 20px;
    color: white;
    position: relative;
}

.sn-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sn-bot-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    position: relative;
}

.sn-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--sn-primary);
    border-radius: 50%;
}

.sn-header-text h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.sn-bot-badge {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Messages */
.sn-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sn-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    animation: sn-fade-in 0.3s ease;
}

.sn-msg-bot {
    align-self: flex-start;
    background: white;
    color: var(--sn-text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.sn-msg-user {
    align-self: flex-end;
    background: var(--sn-primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

/* Quick Actions */
.sn-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.sn-action-chip {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--sn-primary);
    color: var(--sn-primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sn-action-chip:hover {
    background: var(--sn-primary) !important;
    color: white !important;
}

/* Search Results Cards */
.sn-search-intro {
    margin-bottom: 12px;
    font-weight: 500;
}

.sn-results-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0;
}

.sn-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s;
}

.sn-result-card:hover {
    border-color: var(--sn-primary);
    background: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sn-result-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sn-grey);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.sn-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sn-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.sn-result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sn-primary, #ED1F24) !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.sn-result-link:hover {
    gap: 10px;
}

.sn-search-outro {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.8;
}

/* Input Area */
.sn-input-wrap {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--sn-border);
}

.sn-input-container {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 25px;
    padding: 4px 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sn-input-container:focus-within {
    border-color: var(--sn-primary);
    background: white;
}

.sn-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 10px;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
    color: var(--sn-text);
}

.sn-send-btn {
    background: var(--sn-primary);
    color: white !important;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.sn-send-btn svg {
    width: 22px !important;
    height: 22px !important;
    color: white !important;
    stroke: white !important;
}

.sn-send-btn:hover { transform: scale(1.1); }

.sn-powered {
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
    padding: 8px 0;
    background: #f8fafc;
}

/* Bottom Nav */
.sn-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--sn-border);
    background: #f8fafc;
}

.sn-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--sn-grey);
    font-size: 10px;
    font-weight: 600;
    transition: color 0.2s;
}

.sn-nav-item svg { width: 20px; height: 20px; }
.sn-nav-item.active { color: var(--sn-primary); }

/* Typing indicator */
.sn-typing {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
    background: white;
    border-radius: 18px;
    width: fit-content;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.sn-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: sn-typing 1.4s infinite ease-in-out;
}

.sn-dot:nth-child(2) { animation-delay: 0.2s; }
.sn-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes sn-typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Animations */
@keyframes sn-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sn-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
/* Responsive Design */
@media (max-width: 480px) {
    .sn-window {
        width: calc(100% - 40px);
        height: calc(100% - 120px);
        right: 20px;
        bottom: 95px;
        border-radius: 20px;
    }
    
    .sn-launcher-label {
        display: none;
    }
    
    .sn-launcher-wrap {
        right: 20px;
        bottom: 20px;
    }

    .sn-header {
        padding: 20px 15px;
    }
    
    .sn-messages {
        padding: 15px;
    }

    .sn-input-wrap {
        padding: 10px 15px;
    }
}

@media (max-width: 380px) {
    .sn-window {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
    
    .sn-launcher-wrap {
        right: 15px;
        bottom: 15px;
    }
}

.sn-messages::-webkit-scrollbar { width: 4px; }
.sn-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
