/**
 * Support Page - Mobile Responsive Styles
 */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a url('/pages/shared/assets/images/backgrounds/tech-meeting-flatlay.jpg') center/cover fixed !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: 100vh;
    padding: 0;
    padding-top: 110px;
    position: relative !important;
}

body::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.5) !important;
    z-index: -1 !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

.support-container {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    align-items: start;
    z-index: 1;
    margin: 0 auto;
    padding: 2rem;
}

/* Chat Widget Trigger - Hide when chat is inline */
.chat-trigger {
    display: none;
}

/* Welcome Card */
.welcome-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.welcome-card h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-card p {
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.welcome-card-footer {
    margin-top: 1.5rem !important;
    color: white !important;
    font-size: 0.875rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.chat-button {
    display: none;
}

/* Chat Window */
.chat-window {
    position: relative;
    width: 100%;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-header-text h3 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.chat-header-text p {
    font-size: 0.7rem;
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
}

.chat-message {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.chat-message.bot {
    flex-direction: row-reverse;
}

.chat-message.user {
    flex-direction: row;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 75%;
    padding: 0.6rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chat-message.bot .message-bubble {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.user .message-bubble {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-bottom-left-radius: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-replies {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.quick-reply-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: white;
}

.quick-reply-btn i {
    font-size: 0.7rem;
}

.quick-reply-btn:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
}

.chat-input-area {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.8rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-input:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.2);
}

.chat-send-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.typing-indicator {
    display: none;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    width: fit-content;
}

.typing-indicator.active {
    display: block;
}

.typing-dots {
    display: flex;
    gap: 0.2rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.success-message {
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.success-message.active {
    display: flex;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .support-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .welcome-card {
        height: auto;
        padding: 1.5rem;
    }

    .chat-window {
        height: 450px;
    }
}

@media (max-width: 1024px) {
    .support-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px !important;
    }
    
    .support-container {
        max-width: 100% !important;
        width: 100%;
        padding: 0.5rem !important;
    }
    
    .welcome-card,
    .chat-window {
        padding: 1.5rem !important;
    }
    
    .welcome-card h1 {
        font-size: 1.75rem !important;
    }
    
    .welcome-card h2 {
        font-size: 1.25rem !important;
    }
    
    .chat-header h3 {
        font-size: 1.125rem !important;
    }
    
    .chat-messages {
        max-height: 400px !important;
    }

    .chat-window {
        height: 400px;
    }

    .welcome-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .support-container {
        padding: 0.5rem !important;
    }
    
    .welcome-card,
    .chat-window {
        padding: 1rem !important;
    }
    
    .welcome-card h1 {
        font-size: 1.5rem !important;
    }
    
    .welcome-card h2 {
        font-size: 1.125rem !important;
    }
    
    .chat-header h3 {
        font-size: 1rem !important;
    }
    
    .chat-message {
        max-width: 85% !important;
    }
    
    .chat-input-form {
        gap: 0.5rem !important;
    }
    
    .chat-input-form input {
        font-size: 0.875rem !important;
    }
    
    .chat-input-form button {
        padding: 0.75rem 1rem !important;
    }
}


