/* Interactive Assistant Modal Styles */
:root {
    --assistant-primary: #0057ff;
    --assistant-primary-light: rgba(0, 87, 255, 0.1);
    --assistant-secondary: #ff0f39;
    --assistant-dark: #1A1A2E;
    --assistant-gray: #E6E8F0;
    --assistant-light-gray: #f8fafc;
    --assistant-text: #333456;
    --assistant-border-radius: 12px;
    --assistant-transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --assistant-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --assistant-sidebar-width: 250px;
}

/* Container styles */
.assistant-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 550px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--assistant-border-radius);
    box-shadow: var(--assistant-shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards ease-out;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assistant-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar styles */
.assistant-sidebar {
    width: var(--assistant-sidebar-width);
    background-color: var(--assistant-light-gray);
    border-right: 1px solid var(--assistant-gray);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
}

.assistant-logo {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.assistant-logo h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 10px;
    color: var(--assistant-dark);
}

.pulse-icon {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-circle {
    width: 18px;
    height: 18px;
    background: var(--assistant-primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.pulse-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 87, 255, 0.3);
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.sidebar-categories {
    flex: 1;
    overflow-y: auto;
}

.sidebar-categories h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--assistant-text);
    opacity: 0.7;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--assistant-transition);
    font-size: 0.95rem;
    color: var(--assistant-text);
}

.category-list li:hover {
    background-color: rgba(0, 87, 255, 0.05);
}

.category-list li.active {
    background-color: var(--assistant-primary-light);
    color: var(--assistant-primary);
    font-weight: 600;
}

.category-list li.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--assistant-primary);
}

/* Main content styles */
.assistant-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--assistant-gray);
    text-align: center;
}

.chat-header h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--assistant-dark);
}

.chat-header p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--assistant-text);
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #f9fafc;
}

.message {
    margin-bottom: 1.5rem;
    max-width: 85%;
    animation: messageAppear 0.3s forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    margin-left: auto;
}

.message-content {
    padding: 1rem;
    border-radius: var(--assistant-border-radius);
    position: relative;
}
.message.user .message-content p{
    color: #E6E8F0 !important;
}

.message.assistant .message-content {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 0 var(--assistant-border-radius) var(--assistant-border-radius) var(--assistant-border-radius);
}

.message.user .message-content {
    background-color: var(--assistant-primary);
    color: white;
    border-radius: var(--assistant-border-radius) 0 var(--assistant-border-radius) var(--assistant-border-radius);
}

.message-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    margin-top: 0.4rem;
    opacity: 0.7;
    text-align: right;
}

.message.user .message-time {
    color: var(--assistant-text);
}

.highlight {
    color: var(--assistant-primary);
    font-weight: 600;
}

.message.user .highlight {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.message-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.suggestion {
    background-color: var(--assistant-primary-light);
    color: var(--assistant-primary);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--assistant-transition);
    font-weight: 500;
}

.suggestion:hover {
    background-color: rgba(0, 87, 255, 0.2);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    padding: 0.5rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    margin-right: 5px;
    background-color: var(--assistant-primary);
    border-radius: 50%;
    display: inline-block;
    opacity: 0.4;
    animation: typing 1.2s infinite;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

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

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Suggestion chips */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--assistant-gray);
    background-color: white;
}

.chip {
    background-color: var(--assistant-light-gray);
    color: var(--assistant-text);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--assistant-transition);
    font-weight: 500;
}

.chip:hover {
    background-color: var(--assistant-gray);
}

.chip.active {
    background-color: var(--assistant-primary);
    color: white;
}

/* Input area */
.chat-input {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--assistant-gray);
    background-color: white;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--assistant-gray);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--assistant-transition);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--assistant-primary);
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--assistant-primary);
    color: white;
    border: none;
    margin-left: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--assistant-transition);
}

.send-button:hover {
    background-color: #0046cc;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 992px) {
    .assistant-container {
        height: 500px;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .assistant-container {
        height: 90vh;
        min-height: 450px;
        max-height: 600px;
        width: 95%;
    }
    
    .assistant-wrapper {
        flex-direction: column;
    }
    
    .assistant-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--assistant-gray);
        padding: 1rem 0;
    }
    
    .sidebar-categories {
        display: none;
    }
    
    .assistant-logo {
        margin-bottom: 0;
        justify-content: center;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-header h2 {
        font-size: 1.3rem;
    }
    
    .chat-messages {
        padding: 1rem;
        max-height: calc(100vh - 220px);
    }
    
    .suggestion-chips {
        padding: 0.8rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .suggestion-chips::-webkit-scrollbar {
        display: none;
    }
    
    .chat-input {
        padding: 0.8rem;
    }
    
    .message {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .assistant-container {
        height: 85vh;
        width: 98%;
        margin: 0 auto;
    }
    
    .chat-header h2 {
        font-size: 1.2rem;
    }
    
    .chat-header p {
        font-size: 0.85rem;
    }
    
    .chip {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        margin-right: 0.3rem;
    }
    
    .message-content {
        padding: 0.8rem;
    }
    
    .message-content p {
        font-size: 0.9rem;
    }
    
    .chat-input input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .send-button {
        width: 36px;
        height: 36px;
    }
}

/* Special styling for the second slide */
.assistant-chat-slide {
    background-color: var(--assistant-light-gray) !important;
    position: relative;
    min-height: 650px; /* Ensure consistent slide height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-chat-slide .container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
}

/* Make sure both slides have equal height */
.swiper-slide {
    min-height: 650px;
    height: auto !important;
}

/* Fix for slide visibility issues */
.swiper-slide-active {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix to prevent slides from disappearing */
.swiper-container {
    overflow: visible !important;
}

/* Improve the pulsing animation for iDwteam branding */
.pulse-circle {
    background: var(--assistant-primary);
    box-shadow: 0 0 10px rgba(0, 87, 255, 0.5);
}

.pulse-waves {
    background: rgba(0, 87, 255, 0.4);
    animation: pulse 2s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}