/* Chat Container Styles */
.chat-container {
    width: auto;
    margin: 0px auto;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.messages {
    height: 460px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    font-size: 18px;
    font-weight: 600;
}

.messages .message {
    margin: 20px 0;
}

.messages .user {
    text-align: right;
    color: #1c63b8;
}

.messages .bot {
    text-align: left;
    color: #333;
}

.input-container {
    display: flex;
    align-items: center;
}

.input-container input {
    flex: 1;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 0px;
}

.input-container button {
    height: 40px;
    padding: 8px 20px;
    background: #1c63b8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 20px;
    font-size: 14px;
}

/* Message Styles */
.message strong {
    font-weight: 600;
    display: inline-block;
    margin-right: 6px;
}

.message.bot strong {
    color: #2c5282;
}

.message.user strong {
    color: #2b6cb0;
}

.message img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.message img:hover {
    transform: scale(1.02);
}

.message.bot {
    display: flex;
    align-items: start;
    gap: 10px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #1c63b8;
}

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

.message-content {
    flex: 1;
}

/* List Styles */
.message ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message li {
    display: block;
    padding-left: 20px;
    position: relative;
    white-space: normal;
}

.message li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1c63b8;
}

/* Message Content Styles */
.message-content {
    flex: 1;
    white-space: normal;
}

.message a {
    display: block;
    margin-bottom: 5px;
    word-break: break-word;
}

.message .snippet {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* Video Results Styles */
.video-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.video-container:last-child {
    border-bottom: none;
}

.video-title {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #0066cc;
    text-decoration: underline;
}

.video-thumbnail {
    width: 100%;
    max-width: 320px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
}

.video-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

.message-content span {
    display: inline-block;
}

/* Upgrade Prompt Styles */
.upgrade-prompt {
    background-color: #f8f9fa;
    border: 1px solid #1c63b8;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
}

.upgrade-btn {
    background-color: #1c63b8;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.message-count {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.login-modal.active {
    display: flex;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.login-container p {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #1c63b8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #154a8c;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer a {
    color: #1c63b8;
    text-decoration: none;
}

.form-footer .divider {
    margin: 0 10px;
    color: #666;
} 