@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --ul-green: #005335;
    --ul-modern-green: #00B140;
    --ul-heritage-green: #003726;
    --light-gray: #F5F7F6;
    --bg: #f9fbfa;
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: #1a1a1a;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--ul-green);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

nav a:hover {
    background: rgba(255,255,255,0.15);
}

.page {
    display: none;
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.active {
    display: block;
}

#chat-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    height: calc(100vh - 160px);
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.chat-header {
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
}

#messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--light-gray);
}

.message {
    max-width: 75%;
    margin: 8px 0;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    animation: fadeIn 0.25s ease;
    position: relative;
}

.user {
    background: var(--ul-modern-green);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

.bot {
    background: var(--ul-heritage-green);
    color: white;
    border-bottom-left-radius: 6px;
}

.timestamp {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 2px;
    color: #333;
}

.user .timestamp {
    text-align: right;
    color: #222;
}

.bot .timestamp {
    text-align: left;
    color: #ddd;
}

#input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e5e5e5;
    background: white;
}

#user-input {
    flex: 1;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
}

#user-input:focus {
    border-color: var(--ul-modern-green);
}

#send-btn {
    margin-left: 10px;
    padding: 12px 18px;
    background: var(--ul-modern-green);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

#send-btn:hover {
    background: var(--ul-green);
}

#consent-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#consent-box {
    background: white;
    width: 90%;
    max-width: 480px;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#consent-text {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 14px;
}

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