/* Base Variables and Premium Styling */
@font-face {
    font-family: 'Dekar';
    src: url('../Document fonts/Dekar.otf') format('opentype');
}

@font-face {
    font-family: 'TitlingGothic';
    src: url('../Document fonts/TitlingGothicCond\ Medium.otf') format('opentype');
    font-weight: 500;
}

:root {
    --primary: #0f6c76; /* Life Source Petroleum */
    --surface: #ffffff;
    --background: #f4f6f8;
    --text-main: #333333;
    --text-muted: #777777;
    --alert-immediate: #ffe5e5; /* Light Red */
    --alert-standard: #e0f2f1; /* Light Petroleum */
    
    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow-soft: 0 8px 32px rgba(0,0,0,0.06);
}

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

body {
    background-color: var(--background);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Dekar', sans-serif;
}

h1, h2, h3, .primary-btn {
    font-family: 'TitlingGothic', sans-serif;
}

.app-container {
    width: 100%;
    max-width: 450px;
    height: 100vh; /* Mobile height */
    max-height: 900px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.view {
    display: none;
    height: 100%;
    width: 100%;
    padding: 2rem;
    flex-direction: column;
    justify-content: center;
}

.view.active {
    display: flex;
}

h1 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.gdpr-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-align: left;
    margin-bottom: 2rem;
}

.primary-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.1s;
}

.primary-btn:active {
    transform: scale(0.98);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    margin-top: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Chat View Styles */
.chat-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--background);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
}

.ai-message {
    background: white;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guest-message {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(201,147,81,0.2);
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 24px;
    outline: none;
}

.send-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
