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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #ffffff;
    color: #1e293b;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

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

.header-info h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-info p {
    font-size: 14px;
    opacity: 0.9;
}

.logo {
    max-height: 90px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.message {
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message-content {
    max-width: 80%;
}

.bot-message .message-content {
    margin-left: 0;
}

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

.message-text {
    background: white;
    padding: 15px 20px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
}

.user-message .message-text {
    background: #2563eb;
    color: white;
}

.message-text li {
    margin: 5px 0;
}

.event-info-card {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.event-info-item:last-child {
    margin-bottom: 0;
}

.event-info-item .icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.event-info-item .text {
    font-size: 0.95em;
    color: #1e293b;
    font-weight: 600;
}

.response-card {
    background: white;
    border-radius: 15px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: expandCard 0.3s ease-out;
}

@keyframes expandCard {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card-header {
    background: #2563eb;
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.card-content {
    padding: 20px;
}

.stall-item,
.schedule-item,
.facility-item {
    padding: 15px;
    border-left: 4px solid #667eea;
    margin-bottom: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.conference-item {
    padding: 15px;
    border-left: 4px solid #667eea;
    margin-bottom: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.stall-item h4,
.schedule-item h4,
.facility-item h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.conference-item h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.stall-item p,
.schedule-item p,
.facility-item p {
    color: #4a5568;
    margin: 5px 0;
    font-size: 14px;
}

.conference-item p {
    color: #4a5568;
    margin: 5px 0;
    font-size: 14px;
}

.stall-item strong,
.schedule-item strong,
.facility-item strong {
    color: #2d3748;
}

.conference-item strong {
    color: #2d3748;
}

/* Timings and Speaker Item Styles */
.timings-item,
.speaker-item {
    padding: 15px;
    border-left: 4px solid #667eea;
    margin-bottom: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.timings-item h4,
.speaker-item h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.timings-item p,
.speaker-item p {
    color: #4a5568;
    margin: 5px 0;
    font-size: 14px;
}

.timings-item strong,
.speaker-item strong {
    color: #2d3748;
}

/* Product Launch Table Styles */
.product-launch-container {
    margin: 10px 0;
}

.product-launch-table {
    font-size: 13px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.product-launch-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-launch-table td {
    padding: 10px 8px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.4;
}

.product-launch-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.product-launch-table tbody tr:hover {
    background: #e3f2fd;
    transition: background-color 0.2s;
}

.chat-input-container {
    background: white;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 14px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

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

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

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

#userInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#userInput:focus {
    border-color: #667eea;
}

/* Suggestions Dropdown */
.suggestions-container {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 60px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-bottom: 10px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.suggestion-item:hover .suggestion-category,
.suggestion-item.selected .suggestion-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.suggestion-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.suggestion-category {
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Scrollbar for suggestions */
.suggestions-container::-webkit-scrollbar {
    width: 6px;
}

.suggestions-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.suggestions-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.suggestions-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

#sendButton {
    width: 45px;
    height: 45px;
    background: #2563eb;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#sendButton:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.quick-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    flex-wrap: wrap;
}

.quick-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #64748b;
}

.quick-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.quick-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* Speaker button special styling */
.quick-btn:last-child {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.quick-btn:last-child:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.collapse-icon {
    transition: transform 0.3s;
}

.collapsed .collapse-icon {
    transform: rotate(180deg);
}

.card-content.collapsed {
    display: none;
}

/* Loading and error states */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #e53e3e;
}

.loading-message {
    background: #bee3f8;
    color: #2b6cb0;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #3182ce;
}

/* Input validation */
#userInput:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

#sendButton:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

#sendButton:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .chat-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-width: none;
        box-shadow: none;
    }

    .chat-header {
        padding: 15px;
    }

    .header-info h1 {
        font-size: 20px;
    }

    .logo {
        max-height: 65px;
    }

    .chat-messages {
        padding: 15px;
    }

    .message-content {
        max-width: 90%;
    }

    .chat-input-container {
        padding: 15px;
    }

    #userInput {
        font-size: 16px;
        padding: 12px 16px;
    }

    .quick-actions {
        padding: 0 15px 15px;
    }

    .quick-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }

    .header-info h1 {
        font-size: 18px;
    }

    .header-info p {
        font-size: 12px;
    }

    .status-indicator {
        font-size: 12px;
    }

    .message-text {
        padding: 12px 15px;
    }

    .card-content {
        padding: 15px;
    }

    .stall-item,
    .schedule-item,
    .facility-item {
        padding: 12px;
    }
}

/* Modal Overlay & Responsive Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9); /* Premium deep slate overlay */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal.show {
    display: flex !important;
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f5f9;
    font-size: 44px;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.close-modal:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.modal-content {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    transition: none !important; /* Prevents lag during drag/panning transform updates */
    cursor: zoom-in;
    transform-origin: center center;
}

/* Schedule Split Flex Layout */
@media (max-width: 768px) {
    .schedule-layout {
        flex-direction: column !important;
    }
    
    .schedule-image-container {
        min-width: 100% !important;
        margin-bottom: 10px;
    }
    
    .schedule-list-container {
        min-width: 100% !important;
    }
}