/* SALON CHAT WIDGET STYLES - RESPONSIVE */
.salon-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.salon-chat-widget .chat-floating-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(214, 138, 138, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid white;
}

.salon-chat-widget .chat-floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(214, 138, 138, 0.4);
}

.salon-chat-widget .chat-icon {
    color: white;
    font-size: 1.2rem;
}

.salon-chat-widget .notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

.salon-chat-widget .chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 560px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.salon-chat-widget .chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

.salon-chat-widget .chat-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.salon-chat-widget .header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.salon-chat-widget .ai-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.salon-chat-widget .header-text {
    flex: 1;
}

.salon-chat-widget .header-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-align: left;
}

.salon-chat-widget .status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.8;
    justify-content: flex-start;
}

.salon-chat-widget .status-indicator {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.salon-chat-widget .close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.salon-chat-widget .close-chat:hover {
    background: rgba(255, 255, 255, 0.1);
}

.salon-chat-widget .chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.salon-chat-widget .message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.salon-chat-widget .ai-message {
    align-self: flex-start;
}

.salon-chat-widget .user-message {
    align-self: flex-end;
}

.salon-chat-widget .message-content {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14px;
}

.salon-chat-widget .ai-message .message-content {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
}

.salon-chat-widget .user-message .message-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom-right-radius: 6px;
}

.salon-chat-widget .message-time {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    padding: 0 4px;
}

.salon-chat-widget .feature-list {
    margin: 8px 0;
    padding-left: 16px;
}

.salon-chat-widget .feature-list li {
    margin-bottom: 4px;
    color: #4b5563;
}

.salon-chat-widget .chat-typing {
    padding: 0 20px 16px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.salon-chat-widget .typing-indicator {
    display: flex;
    gap: 4px;
}

.salon-chat-widget .typing-indicator span {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite both;
}

.salon-chat-widget .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.salon-chat-widget .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.salon-chat-widget .chat-input-area {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.salon-chat-widget .input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.salon-chat-widget #salonChatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    font-family: inherit;
    transition: all 0.2s;
    background: #f9fafb;
}

.salon-chat-widget #salonChatInput:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(214, 138, 138, 0.1);
}

.salon-chat-widget .send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.salon-chat-widget .send-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.salon-chat-widget .send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* BOOKING BUTTON */
.salon-chat-widget .booking-button-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.salon-chat-widget .booking-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.salon-chat-widget .booking-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: white;
}

/* ANIMATIONS */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .salon-chat-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .salon-chat-widget .chat-window {
        width: calc(100vw - 32px);
        height: 70vh;
        right: 16px;
        bottom: 76px;
    }
    
    .salon-chat-widget .chat-floating-btn {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .salon-chat-widget .chat-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 70px;
    }
    
    .salon-chat-widget .chat-header {
        padding: 15px;
    }
    
    .salon-chat-widget .chat-messages {
        padding: 15px;
    }
    
    .salon-chat-widget .chat-input-area {
        padding: 15px;
    }
}