/* Chat container styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    background: var(--color-bg-primary);
    position: relative;
    z-index: 1;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

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

/* Info Modal Overlay styles */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.info-modal.is-active {
    display: block;
}

.info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.info-modal-content {
    position: relative;
    background: #ffffff;  /* Explicit white background for light mode */
    color: #333333;      /* Dark text for light mode */
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 
                0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.info-modal-header {
    padding: 1.25rem;
    background: #f8f9fa;  /* Light gray background for light mode */
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;  /* Dark text for light mode */
}

.info-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.info-modal-close:hover {
    color: #007bff;  /* Primary color on hover */
}

.info-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    background: #ffffff;  /* White background for light mode */
}

.info-modal-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333333;  /* Dark text for light mode */
    font-weight: 600;
}

.info-modal-body ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.info-modal-body li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: #4a4a4a;  /* Slightly lighter text for better readability */
    line-height: 1.5;
}

.info-modal-body li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;  /* Primary color for bullets */
}

.info-modal-body .note {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8f9fa;  /* Light gray background for note in light mode */
    border-radius: 8px;
    font-style: italic;
    color: #666666;
    border-left: 4px solid #007bff;
}

/* Dark mode specific adjustments */
html[data-theme="dark"] .info-modal-content {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4),
                0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .info-modal-header {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

html[data-theme="dark"] .info-modal-header h3 {
    color: var(--color-text);
}

html[data-theme="dark"] .info-modal-close {
    color: var(--color-text);
}

html[data-theme="dark"] .info-modal-close:hover {
    color: var(--color-primary);
}

html[data-theme="dark"] .info-modal-body {
    background: var(--color-bg-elevated);
}

html[data-theme="dark"] .info-modal-body h4,
html[data-theme="dark"] .info-modal-body li {
    color: var(--color-text);
}

html[data-theme="dark"] .info-modal-body .note {
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
}

/* RTL Support */
html[dir="rtl"] .info-modal-body li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .info-modal-body li:before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .info-modal-body .note {
    border-left: none;
    border-right: 4px solid var(--color-primary);
}
