/* Hoyt Vision Web App Styles */

:root {
    --hoyt-red: #C41E3A;
    --hoyt-black: #0A0A0A;
    --hoyt-white: #FFFFFF;
    --hoyt-gray-300: #B8B8B8;
    --hoyt-gray-400: #888888;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--hoyt-white);
    color: var(--hoyt-black);
    line-height: 1.6;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--hoyt-red), var(--hoyt-black));
    color: var(--hoyt-white);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    color: var(--hoyt-gray-300);
}

/* Main Content */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Sections */
.camera-section,
.chat-section {
    background: var(--hoyt-white);
    border: 1px solid var(--hoyt-gray-300);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.camera-section h2,
.chat-section h2 {
    color: var(--hoyt-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Camera */
.camera-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#videoElement {
    width: 100%;
    height: auto;
    max-height: 400px;
    background-color: var(--hoyt-black);
    border-radius: 4px;
}

/* Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid var(--hoyt-gray-300);
    max-height: 400px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    line-height: 1.5;
}

.message.user {
    background-color: var(--hoyt-red);
    color: var(--hoyt-white);
    margin-left: auto;
    max-width: 80%;
}

.message.assistant {
    background-color: var(--hoyt-gray-300);
    color: var(--hoyt-black);
    margin-right: auto;
    max-width: 80%;
}

/* Input Area */
.input-area {
    display: flex;
    gap: 0.5rem;
}

#questionInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hoyt-gray-300);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    resize: none;
}

#questionInput:focus {
    outline: none;
    border-color: var(--hoyt-red);
    box-shadow: 0 0 4px rgba(196, 30, 58, 0.2);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--hoyt-red);
    color: var(--hoyt-white);
}

.btn-primary:hover {
    background-color: #A01830;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(196, 30, 58, 0.3);
}

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

/* Footer */
.app-footer {
    background-color: var(--hoyt-black);
    color: var(--hoyt-white);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.app-footer p {
    margin: 0.25rem 0;
}

.tagline-footer {
    color: var(--hoyt-gray-300);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .message.user,
    .message.assistant {
        max-width: 100%;
    }
}
