﻿.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 0;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

    .header h1 {
        font-size: 2.5rem;
        color: #2c3e50;
    }

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intro-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.action-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .action-card h3 {
        color: #3498db;
    }

.btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
}

.btn-outline-primary {
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.btn:hover {
    opacity: 0.9;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    margin-top: 40px;
}

.details {
    margin-top: 10px;
    color: #34495e;
}

/* ========= ChatBot Page Styles ========== */

/* Container overall */
.chat-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f7f9fc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

    /* Title */
    .chat-container .title {
        text-align: center;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #444;
    }

/* The box displaying conversation */
.chat-box {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    max-height: 300px; /* adjust as needed */
}

/* Chat messages (common style) */
.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.6rem 1rem;
    line-height: 1.4;
    border-radius: 20px;
    font-size: 0.95rem;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* User message style */
.user-msg {
    background-color: #d1ecf1;
    color: #0c5460;
    align-self: flex-end; /* float to the right */
    border-top-right-radius: 0;
}

/* AI message style */
.ai-msg {
    background-color: #e2e3e5;
    color: #383d41;
    align-self: flex-start; /* float to the left */
    border-top-left-radius: 0;
}

/* Audio controls container */
.audio-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

    /* Label for dropdowns */
    .audio-controls label {
        font-size: 0.9rem;
        color: #444;
        margin-right: 0.5rem;
    }

    /* Dropdowns */
    .audio-controls select {
        padding: 0.3rem 0.5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 0.9rem;
        background-color: #fff;
        outline: none;
        cursor: pointer;
    }

/* Buttons */
.chat-container button {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    color: #fff;
    background-color: #007bff; /* or your brand color */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    min-width: 120px;
    transition: background-color 0.2s;
}

    .chat-container button:hover {
        background-color: #0069d9;
    }

    .chat-container button:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

    /* Stop button or negative action can have a different color */
    .chat-container button.btn-stop {
        background-color: #dc3545;
    }

        .chat-container button.btn-stop:hover {
            background-color: #c82333;
        }

    /* Example for continuous buttons (optional) */
    .chat-container button.btn-alt {
        background-color: #28a745;
    }

        .chat-container button.btn-alt:hover {
            background-color: #218838;
        }


.card {
    border-radius: 6px;
}

.card-header {
    font-weight: 500;
}

.form-label {
    margin-bottom: 6px;
}

.chat-container {
}

.rich-text-editor-container .ql-editor {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 200px;
}

.rich-text-editor-container .ql-toolbar {
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: none;
    background-color: #f8f9fa;
}

.rich-text-editor-container .ql-container {
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-top: none;
    background-color: white;
}