/* Booking System Styles */
:root {
    --primary-color: #3c55e0;
    --primary-light: rgba(60, 85, 224, 0.1);
    --secondary-color: #7d80ff;
    --accent-color: #34d399;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #ebebeb;
    --text-secondary: #c0c0c0;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.2s ease;
}

/* Base Styles */
.booking-page {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hidden {
    display: none !important;
}

/* Header Styles */
.booking-page .header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.booking-page .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-page .logo {
    display: flex;
    align-items: center;
}

.booking-page .main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.booking-page .main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.booking-page .main-nav a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Booking Container */
.booking-container {
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    
}

/* Booking Info Section */
.booking-info {
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.organizer-details {
    background-color: var(--primary-light);
    padding: 32px;
}

.organizer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
}

.organizer-logo img {
    
    width: 32px;
    height: 32px;
}

.host-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.host-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.event-type {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--text-primary);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.booking-description {
    background-color: var(--accent-blue);

    font-size: 15px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin: 0;
    line-height: 1.6;
}

/* Booking Calendar Section */
.booking-calendar {
    background-color: var(--primary-light);

    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
}

.calendar-heading {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.month-navigation {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 24px;
}

.month-nav {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
}

.month-nav:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.current-month {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Calendar Grid */
.calendar-grid {
    margin-bottom: 32px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.weekday {
    padding: 8px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: var(--radius-md);
    cursor: default;
    color: var(--text-secondary);
    transition: var(--transition);
}

.day.prev-month, .day.next-month {
    color: var(--text-light);
    opacity: 0.5;
}

.day.available {
    background-color: var(--primary-light);
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
}

.day.available:hover {
    background-color: rgba(60, 85, 224, 0.2);
}

.day.selected {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.day.today {
    border: 2px solid var(--primary-color);
    font-weight: 500;
}

.day.weekend {
    background-color: var(--primary-light);
    color: #a0a0a0;
    text-decoration: line-through;
    cursor: not-allowed;
    position: relative;
}

.weekend-indicator {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--error-color);
}

/* Time Slots */
.time-slots {
    margin-bottom: 32px;
}

.time-slots-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.time-slot {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    background-color: rgba(60, 85, 224, 0.2);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Add styles for unavailable time slots */
.time-slot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
    background-color: var(--primary-light);
    color: #999;
    border: 1px solid #ddd;
}

.time-slot.unavailable:hover {
    background-color: var(--primary-light);
    transform: none;
    box-shadow: none;
}

/* Timezone Selector */
.timezone-selector {
    margin-bottom: 32px;
}

.timezone-selector label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.select-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.timezone-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.timezone-select {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--primary-light);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.timezone-select:focus {
    outline: 2px solid var(--primary-light);
    border-color: var(--primary-color);
}

/* Booking Actions */
.booking-actions {
    display: flex;
    justify-content: flex-end;
}

.continue-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-xl); /* 12px */
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.continue-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.continue-btn:active {
    transform: translateY(0px);
    box-shadow: var(--shadow-sm);
}

/* Remove pulse animation if not desired for the new style */
.pulse-button {
    /* animation: pulse 2s infinite; */ /* Commented out or remove if not needed */
}

/* Booking Form */
.booking-form {
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.back-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-right: 16px;
}

.back-button:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.selected-slot-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.slot-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.slot-info-item svg {
    color: var(--primary-color);
}

#appointment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 4px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--primary-light);


    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--primary-light);
    border-color: var(--primary-color);
}

.google-calendar-integration {
    grid-column: span 2;
    margin: 16px 0;
}

.google-calendar-integration h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.calendar-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.calendar-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-actions {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.cancel-btn {
    background-color: var(--primary-light);

    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    background-color: var(--primary-light);

}

.schedule-btn {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.schedule-btn:hover {
    background-color: #2e42c0;
}

/* Confirmation Screen */
.booking-confirmation {
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    text-align: center;
}

.confirmation-header {
    margin-bottom: 32px;
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-color);
    margin: 0 auto 16px;
}

.confirmation-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--success-color);
}

.confirmation-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.confirmation-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.confirmation-item {
    display: flex;
    gap: 16px;
    text-align: left;
    padding: 16px;
    background-color: var(--primary-light);

    border-radius: var(--radius-md);
}

.item-icon {
    color: var(--primary-color);
}

.item-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.item-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.add-to-calendar-btn, .reschedule-btn, .cancel-meeting-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-calendar-btn {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
}

.add-to-calendar-btn:hover {
    background-color: #2e42c0;
}

.reschedule-btn {
    background-color: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background-color: rgba(239, 68, 68, 0.15);

}

.reschedule-btn:hover {
    background-color:rgb(26, 29, 36);
}

.cancel-meeting-btn {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cancel-meeting-btn:hover {
    background-color: rgba(239, 68, 68, 0.15);
}

/* Footer */
.booking-footer {
    background-color: var(--primary-light);

    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 64px;
}

.booking-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.booking-footer .copyright {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.booking-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.booking-footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .booking-container {
        grid-template-columns: 1fr;
    }
    
    .booking-info {
        position: static;
    }
}

@media (max-width: 767px) {
    .days-grid {
        gap: 4px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        max-height: 350px;
    }
    
    #appointment-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .google-calendar-integration {
        grid-column: span 1;
    }
    
    .form-actions {
        grid-column: span 1;
        flex-direction: column;
        gap: 16px;
    }
    
    .cancel-btn, .schedule-btn {
        width: 100%;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .add-to-calendar-btn, .reschedule-btn, .cancel-meeting-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .organizer-details {
        padding: 24px;
    }
    
    .booking-calendar {
        padding: 24px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-form, .booking-confirmation {
        padding: 24px;
    }
}

/* AI Assistant Chat */
.ai-assistant {
    background-color: rgba(23, 25, 35, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-top: 32px;
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 370px;
    height: 520px;
    transform: translateY(460px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.ai-assistant.expanded {
    transform: translateY(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.ai-chat-container::before {
    content: 'Lynxbe AI Assistant';
    display: block;
    background: linear-gradient(90deg, #232536, #323564);
    color: white;
    padding: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ai-chat-container::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2), 0 0 10px rgba(52, 211, 153, 0.5);
    animation: pulse 2s infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: rgba(25, 28, 39, 0.8);
    background-image: 
        radial-gradient(rgba(60, 85, 224, 0.03) 2px, transparent 2px),
        linear-gradient(rgba(30, 32, 44, 0.6) 1px, transparent 1px);
    background-size: 22px 22px, 100% 3rem;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease forwards;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background-color: #3c55e0;
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ai-message {
    align-self: flex-start;
    background-color: #2a2e40;
    color: #e5e7eb;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-message::before {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 0;
    width: 12px;
    height: 12px;
    background-color: #2a2e40;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 0;
    width: 12px;
    height: 12px;
    background-color: #3c55e0;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.message-content {
    white-space: pre-wrap;
    line-height: 1.5;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #7d80ff;
    display: inline-block;
    opacity: 0.8;
}

.typing-indicator span:nth-child(1) {
    animation: typingBounce 1s infinite 0.1s;
}

.typing-indicator span:nth-child(2) {
    animation: typingBounce 1s infinite 0.3s;
}

.typing-indicator span:nth-child(3) {
    animation: typingBounce 1s infinite 0.5s;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
    max-width: 95%;
    align-self: flex-start;
    animation: fadeIn 0.5s ease forwards;
}

.suggestion-btn {
    background-color: rgba(60, 85, 224, 0.1);
    border: 1px solid rgba(60, 85, 224, 0.2);
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #7d80ff;
}

.suggestion-btn:hover {
    background-color: rgba(60, 85, 224, 0.2);
    border-color: rgba(60, 85, 224, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-input {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    background-color: #1a1d24;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
    background-color: #2a2e40;
    color: #e5e7eb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input input:focus {
    outline: none;
    border-color: #3c55e0;
    box-shadow: 0 0 0 2px rgba(60, 85, 224, 0.2);
}

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

.send-btn {
    background: linear-gradient(to bottom right, #3c55e0, #4b67f5);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 16px;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.send-btn:hover {
    background: linear-gradient(to bottom right, #4b67f5, #5b77ff);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.send-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3c55e0, #7d80ff);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(60, 85, 224, 0.4);
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 30px rgba(60, 85, 224, 0.5);
}

.chat-toggle.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #7d80ff, #3c55e0);
}

.chat-toggle svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Hebrew desktop: place chat toggle to the LEFT of the chat container */
@media (min-width: 992px) {
  html[lang="he"] .chat-toggle {
    left: auto !important;
    /* Chat container is right:20px and width:370px → toggle sits just to its left */
    right: calc(20px + 370px + 12px) !important;
  }
}

/* English (LTR) desktop: place chat toggle to the LEFT of the chat container */
@media (min-width: 992px) {
  html:not([lang="he"]) .chat-toggle {
    left: auto !important;
    right: calc(20px + 370px + 12px) !important;
  }
}

.toggle-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(to bottom right, #34d399, #10b981);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes typingBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

/* Responsive adjustments for the chat */
@media (max-width: 768px) {
    .ai-assistant {
        width: calc(100% - 40px);
        height: 400px;
        left: 20px;
        right: 20px;
    }
    
    .suggestions {
        max-width: 100%;
    }
}

.chat-toggle.attention {
    animation: attention-pulse 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes attention-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(60, 85, 224, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 40px rgba(60, 85, 224, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(60, 85, 224, 0.4);
    }
}

/* Add styling for numbered lists in AI messages */
.ai-message ol, 
.ai-message ul {
    margin: 8px 0 8px 20px;
    padding-left: 8px;
}

.ai-message li {
    margin-bottom: 4px;
}

/* Style links in messages */
.ai-message a {
    color: #7d80ff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(125, 128, 255, 0.5);
    transition: all 0.2s ease;
}

.ai-message a:hover {
    color: #9ea0ff;
    border-bottom-color: #9ea0ff;
}

/* Company branding in chat */
.company-card {
    background: linear-gradient(135deg, rgba(35, 37, 54, 0.7), rgba(50, 53, 100, 0.7));
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 12px 0;
    border: 1px solid rgba(125, 128, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 90%;
}

.company-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.company-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: var(--radius-sm);
    background-color: #fff;
    padding: 4px;
}

.company-name {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.company-card-content {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.company-card-cta {
    margin-top: 10px;
    text-align: right;
}

.company-card-cta button {
    background: linear-gradient(to bottom right, #3c55e0, #4b67f5);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.company-card-cta button:hover {
    background: linear-gradient(to bottom right, #4b67f5, #5b77ff);
    transform: translateY(-1px);
}

/* Progress indicator for multi-step conversations */
.conversation-progress {
    display: flex;
    justify-content: center;
    margin: 12px auto;
    gap: 6px;
}

.progress-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #7d80ff;
    box-shadow: 0 0 0 2px rgba(125, 128, 255, 0.2);
} 