/* Zevo Oviso Personal Companion MVP - Styles */

:root {
    --zevo-dark-gray: #343A40;
    --zevo-teal: #1B8B97;
    --zevo-teal-light: #2AA5B2;
    --zevo-teal-dark: #156F7A;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--zevo-teal) 0%, var(--zevo-teal-dark) 100%);
}

/* Login Screen */
#loginScreen {
    background: transparent;
    min-height: 100vh;
}

#loginScreen .card {
    border: none;
    border-radius: 15px;
}

.logo-container {
    background-color: var(--zevo-dark-gray);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

.login-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

#loginForm .btn-primary {
    background-color: var(--zevo-teal);
    border-color: var(--zevo-teal);
}

#loginForm .btn-primary:hover {
    background-color: var(--zevo-teal-dark);
    border-color: var(--zevo-teal-dark);
}

/* Header/Navbar */
.navbar {
    background-color: var(--zevo-dark-gray) !important;
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

.header-logo {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

/* Chat Screen */
.chat-container {
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 0; /* Important for flex scrolling */
}

.controls-area {
    background-color: white;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
    flex-shrink: 0; /* Prevent controls from shrinking */
}

/* Message Bubbles */
.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.user .message-bubble {
    background-color: var(--zevo-teal);
    color: white;
}

.message.assistant .message-bubble {
    background-color: white;
    color: #333;
    border: 1px solid #dee2e6;
}

.message-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-size: 20px;
}

.message.user .message-icon {
    background-color: var(--zevo-teal-dark);
    color: white;
}

.message.assistant .message-icon {
    background-color: var(--zevo-dark-gray);
    color: white;
}

/* Audio Player */
.audio-player {
    margin-top: 10px;
}

.audio-player audio {
    width: 100%;
    height: 32px;
}

/* Recording Button */
#recordBtn {
    width: 70px;
    height: 70px;
    transition: all 0.3s ease;
    background-color: var(--zevo-teal);
    border-color: var(--zevo-teal);
}

#recordBtn:hover {
    transform: scale(1.1);
    background-color: var(--zevo-teal-light);
    border-color: var(--zevo-teal-light);
}

#recordBtn.recording {
    background-color: #dc3545;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Send Button */
#sendBtn {
    background-color: var(--zevo-teal);
    border-color: var(--zevo-teal);
}

#sendBtn:hover {
    background-color: var(--zevo-teal-dark);
    border-color: var(--zevo-teal-dark);
}

/* Status Text */
#statusText {
    min-height: 20px;
}

.status-text {
    text-align: left;
    padding-left: 4px;
}

/* Loading Animation */
.loading {
    display: inline-block;
}

.loading:after {
    content: ' .';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: ' .';
    }
    40% {
        content: ' ..';
    }
    60%, 100% {
        content: ' ...';
    }
}

/* Scrollbar Styling */
.messages-area::-webkit-scrollbar {
    width: 8px;
}

.messages-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.messages-area::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .message-bubble {
        max-width: 85%;
    }
    
    #recordBtn {
        width: 60px;
        height: 60px;
    }
}
