/* Yuno 2.0 — Yellow Dress Retail */
/* Colors: #FFD100 (geel), #E30613 (rood), #1A1A1A (zwart) */

:root {
    --ydr-yellow: #FFD100;
    --ydr-red: #E30613;
    --ydr-black: #1A1A1A;
    --ydr-gray: #F5F5F5;
    --ydr-gray-dark: #666;
    --ydr-white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ydr-gray);
    color: var(--ydr-black);
    min-height: 100vh;
}

/* ── Layout ─────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────── */
.header {
    background: var(--ydr-yellow);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--ydr-black);
    text-decoration: none;
}
.header-logo span { font-weight: 400; opacity: 0.6; }
.header-nav { display: flex; gap: 16px; align-items: center; }
.header-nav a {
    color: var(--ydr-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.header-nav a:hover { background: rgba(0,0,0,0.08); }
.header-user {
    font-size: 13px;
    color: var(--ydr-black);
    opacity: 0.7;
}

/* ── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--ydr-yellow); color: var(--ydr-black); }
.btn-primary:hover { background: #e6bc00; }
.btn-danger { background: var(--ydr-red); color: white; }
.btn-outline { background: none; border: 1.5px solid var(--ydr-black); color: var(--ydr-black); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── Forms ──────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ydr-black);
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--ydr-yellow);
    box-shadow: 0 0 0 3px rgba(255,209,0,0.2);
}

/* ── Login Page ─────────────────────────────── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--ydr-yellow);
}
.login-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.login-card h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.login-card p { color: var(--ydr-gray-dark); margin-bottom: 24px; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── Chat Interface ─────────────────────────── */
.chat-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.chat-progress {
    background: white;
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 16px;
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--ydr-yellow);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.progress-text { font-size: 13px; color: var(--ydr-gray-dark); white-space: nowrap; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.message-assistant {
    align-self: flex-start;
    background: var(--ydr-yellow);
    color: var(--ydr-black);
    border-bottom-left-radius: 4px;
}
.message-user {
    align-self: flex-end;
    background: var(--ydr-black);
    color: white;
    border-bottom-right-radius: 4px;
}
.message-time {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 4px;
}

.chat-input-area {
    background: white;
    border-top: 1px solid #eee;
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 24px;
    font-size: 15px;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
}
.chat-input:focus { outline: none; border-color: var(--ydr-yellow); }
.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ydr-yellow);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}
.chat-send:hover { background: #e6bc00; }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-upload {
    display: flex;
    align-items: center;
    gap: 8px;
}
.upload-btn {
    padding: 8px 14px;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--ydr-gray-dark);
    transition: all 0.2s;
}
.upload-btn:hover { border-color: var(--ydr-yellow); color: var(--ydr-black); }

/* ── Dashboard ──────────────────────────────── */
.dashboard { padding: 32px 0; }
.dashboard h2 { margin-bottom: 24px; }

.briefing-list { display: flex; flex-direction: column; gap: 12px; }
.briefing-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.briefing-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.briefing-card-info h3 { font-size: 16px; margin-bottom: 4px; }
.briefing-card-info p { font-size: 13px; color: var(--ydr-gray-dark); }
.briefing-card-meta { text-align: right; }
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-draft { background: #FFF3CD; color: #856404; }
.status-submitted { background: #D4EDDA; color: #155724; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ydr-gray-dark);
}
.empty-state h3 { margin-bottom: 12px; color: var(--ydr-black); }

/* ── Admin Table ────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th {
    background: var(--ydr-black);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.admin-table tr:hover td { background: #FFFDE7; }

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}
.admin-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: var(--ydr-gray-dark);
    transition: all 0.2s;
}
.admin-tab.active { color: var(--ydr-black); border-bottom-color: var(--ydr-yellow); }
.admin-tab:hover { color: var(--ydr-black); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .message { max-width: 90%; }
    .header { padding: 12px 16px; }
    .chat-input-area { padding: 12px 16px; }
    .briefing-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Typing indicator ───────────────────────── */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    align-self: flex-start;
    background: var(--ydr-yellow);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}
.typing-dot {
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); }
    40% { transform: scale(1); }
}
