﻿:root {
    --bg-page: #f6f7fb;
    --bg-white: white;
    --bg-light: #eee;
    --bg-field: #f0f0f5;
    --color-primary: #ff4d79;
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-md: 0 15px 40px rgba(0,0,0,0.1);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --font-family: 'TT Days Sans', sans-serif;
}

@font-face {
    font-family: 'TT Days Sans';
    src: url('assets/fonts/TTDaysSans-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: var(--font-family), serif;
    font-weight: 900;
    background: var(--bg-page);
    user-select: none;
}

.app {
    display: flex;
    min-width: 100vw;
    height: 100vh;
}

.sidebar,
.chat-list,
.empty-message {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

.sidebar {
    width: 320px;
    padding: 16px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-actions button {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 10px;
}

.tabs button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.tabs button.active {
    background: var(--color-primary);
    color: white;
}

.view {
    display: none;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.view.active {
    display: flex;
}

.card-stack {
    position: relative;
    width: 300px;
    height: 420px;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px;
    text-align: center;
    animation: cardAppear 0.25s ease-out;
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.card-actions {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.empty-message {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    width: auto;
}

.toggle {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 8px;
    cursor: pointer;
}

.toggle-option.active {
    background: var(--color-primary);
    color: white;
}

.chat-list {
    padding: 20px;
    width: 300px;
}

.chat-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 8px 8px 16px;
    border-radius: 16px;
    background: var(--bg-field);
    margin: 8px;
}

.chat-item img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    margin-left: auto;
}

.chat-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

#chatPanel {
    min-width: 100px;
    display: none;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.chat-header img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    margin-left: auto;
}

#chatWindow {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 8px;
}

.message {
    padding: 8px;
    border-radius: var(--radius-sm);
    max-width: 70%;
    word-break: break-word;
}

.me {
    background: var(--color-primary);
    color: white;
    align-self: flex-end;
}

.other {
    background: var(--bg-light);
    align-self: flex-start;
}

.chat-input {
    display: flex;
    gap: 8px;
}

#messageInput {
    width: 100%;
}

#sendBtn {
    border: none;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    padding: 12px;
}

input,
textarea,
button {
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-field);
    padding: 8px;
}

textarea {
    resize: vertical;
    min-height: 8vh;
    max-width: 100%;
}

img {
    -webkit-user-select: none;
    pointer-events: none;
}



