/* Harmony Platform - Rebrand */
/* Huisstijl kleuren: Dark Navy + Neon Cyan */

:root {
    --primary-color: #008B8B;
    /* Darker Cyan for better contrast on white */
    --primary-dark: #006666;
    /* Even darker for hover states */
    --accent-color: #E8A435;
    /* Keep gold accent */
    --tile-green: #00CCCC;
    /* Lighter Cyan for gradients */
    --text-dark: #333333;
    /* Dark text for white background */
    --text-muted: #666666;
    /* Muted text for white background */
    --bg-dark: #050A14;
    /* Dark Navy Background (kept for body) */
    --card-bg: #FFFFFF;
    /* Solid white background for cards */
}

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

.hidden {
    display: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #050A14;
    /* Solid Dark Navy */
    background-image: radial-gradient(circle at 50% 0%, #1a2a40 0%, #050A14 100%);
    /* Subtle gradient */
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* Popup mode - smaller container */
body.popup-mode {
    background: transparent;
    padding: 0;
}

body.popup-mode .container {
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-dark);
}

.container {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 95%;
    position: relative;
}

.logo {
    width: auto;
    height: auto;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo-img {
    width: 100%;
    height: auto;
}

h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Welcome Text Card */
.welcome-text-card {
    background: rgba(0, 139, 139, 0.05);
    border: 1px solid rgba(0, 139, 139, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 0.95em;
    line-height: 1.6;
    color: #444;
}

.welcome-text-card p {
    margin: 0;
}

.call-button {
    width: 100%;
    padding: 20px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tile-green) 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.call-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 123, 110, 0.4);
}

.call-button.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #D4922E 100%);
}

.call-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

footer {
    margin-top: 32px;
    color: #999;
    font-size: 14px;
}

.powered-footer {
    width: 100%;
    margin-top: 28px;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}

.powered-footer a {
    color: var(--tile-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.powered-footer a:hover {
    color: #7EE7E7;
}

.login-powered-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 32px 24px;
    }

    h1 {
        font-size: 24px;
    }

    .call-button {
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* Chat Section */
#chat-section {
    width: 100%;
}

/* AI Suggestions */
.message-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0 8px 8px;
    transition: opacity 0.3s ease;
    justify-content: flex-start;
}

.suggestion-btn {
    background: rgba(0, 139, 139, 0.08);
    border: 1px solid rgba(0, 139, 139, 0.15);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: fit-content;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    letter-spacing: 0.2px;
    font-weight: 500;
}

.suggestion-btn:hover {
    background: rgba(0, 139, 139, 0.15);
    border-color: rgba(0, 139, 139, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 139, 139, 0.15);
}

.chat-container {
    width: 100%;
    background: #F9FAFB;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

.chat-container.incognito-active {
    background: rgba(10, 5, 20, 0.8);
    border-color: rgba(200, 50, 200, 0.2);
}

/* Incognito Toggle Switch */
.theme-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: .4s;
}

.theme-switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-switch input:checked+.slider {
    background-color: #9c27b0;
}

.theme-switch input:checked+.slider:before {
    transform: translateX(20px);
}

.chat-messages {
    height: 450px;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #F9FAFB;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.chat-message {
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message .message-content {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.6;
}

.chat-message.bot .message-content {
    background: #FFFFFF;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.chat-message.user .message-content {
    background: var(--primary-color);
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 139, 139, 0.2);
}

.chat-input-container {
    display: flex;
    padding: 16px;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    gap: 12px;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 12px 20px;
    background: #F3F4F6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    height: 48px;
    line-height: 1.4;
}

#chat-input:focus {
    border-color: var(--primary-color);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.1);
}

.send-button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mic-button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #F3F4F6;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mic-button:hover {
    background: #E5E7EB;
    color: var(--primary-color);
}

.mic-button.listening {
    background: #fee2e2;
    color: #ef4444;
}

.logout-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #F3F4F6;
    border: none;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
    text-decoration: none;
}

.logout-btn:hover {
    background: #E5E7EB;
    color: #333;
}

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050A14;
    background-image: radial-gradient(circle at 50% 0%, #1a2a40 0%, #050A14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-box {
    background: #FFFFFF;
    padding: 48px;
    border-radius: 24px;
    width: 95%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
}

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

.message-sources {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8em;
    color: #888;
}

.source-item {
    margin-top: 4px;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 4px;
    display: inline-block;
    margin-right: 4px;
}

.message-feedback {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 6px;
    align-items: center;
    justify-content: flex-start;
    opacity: 1;
    transition: opacity 0.2s;
}

.message-feedback:hover {
    opacity: 1;
}

.feedback-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    min-width: 34px;
    height: 28px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.feedback-btn:hover {
    background: #f3f4f6;
}

.feedback-btn.active {
    background: rgba(0, 139, 139, 0.12);
    border-color: var(--primary-color);
}

.feedback-btn:disabled {
    cursor: default;
}

.feedback-status {
    color: var(--text-muted);
    font-size: 0.78rem;
}
