/* Chatbot */
.chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--bg-tertiary);
}

.chat-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    max-width: 80%;
}

.chat-message.user {
    background: var(--accent-color);
    color: #fff;
    margin-left: auto;
}

.chat-message.ai {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.chat-input-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-input-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.chat-input-area textarea,
.chat-input-area input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-area textarea:focus,
.chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.1);
}

.chat-input-area textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Make send button larger and more prominent */
.chat-input-container .btn-primary {
    min-width: 100px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    height: auto;
    align-self: stretch;
}

/* ============================================================================
   VIDEO PLAYER STYLES
   ============================================================================ */

/* Video message container */
.video-message {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    max-width: 650px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Video header */
.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.video-header strong {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.video-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Video details grid */
.video-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.detail-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.detail-row .label {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 100px;
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Video player container */
.video-player-container {
    position: relative;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    background: #000;
}

/* Custom overlay controls */
.video-overlay-controls {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.video-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    padding: 0.6rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.video-btn:active {
    transform: translateY(0);
}

/* Video footer */
.video-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Loading and error states */
.video-loading {
    text-align: center;
    padding: 2rem;
}

.video-error {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

.video-error-message {
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 100, 100, 0.05);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.loading-spinner {
    font-size: 2rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive video player */
@media (max-width: 768px) {
    .video-message {
        max-width: 100% !important;
    }

    .video-details {
        grid-template-columns: 1fr;
    }

    .video-overlay-controls {
        top: 0.5rem;
        right: 0.5rem;
    }

    .video-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

