/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-content h2 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.5em;
}

.settings-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #3d3d3d;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: #e0e0e0;
    margin-bottom: 16px;
    font-size: 1.1em;
}

.settings-section label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #212121;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-section label:hover {
    background: #2a2a2a;
}

.settings-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.model-badge {
    display: inline-block;
    background: #0078d4;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 8px;
}

.rate-limit-warning {
    background: #3d3d1a;
    color: #ffd700;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.9em;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: #3d1a1a;
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Voice button active state */
.input-btn.voice-active {
    background: #c42b1c;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
