/* ===== MAIN APP ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-light);
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.dark-mode .app-container {
    background: var(--bg-dark);
}

/* ===== HEADER ===== */
.app-header {
    background: #080c14;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(233, 193, 118, 0.12);
    border: 1.5px solid rgba(233, 193, 118, 0.4);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #e9c176;
    text-shadow: 0 0 12px rgba(233, 193, 118, 0.4);
}

.website-name {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-button {
    border: none;
    color: white;
    background: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.header-button-icon {
    font-size: 14px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    margin-top: 8px;
    z-index: 9999;
}

.dark-mode .dropdown-menu {
    background: var(--bg-secondary-dark);
    border-color: var(--border-dark);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    width: 100%;
    text-align: start;
    color: var(--text-light);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.dark-mode .dropdown-item {
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: var(--bg-secondary-light);
}

.dark-mode .dropdown-item:hover {
    background: var(--bg-secondary-dark);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 0;
}

.dark-mode .dropdown-divider {
    background: var(--border-dark);
}

/* ===== MAIN LAYOUT ===== */
.app-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .message-content {
        max-width: 90%;
    }
    .app-main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .message-bubble {
        max-width: 90%;
    }

    .modal-content {
        margin: 20px;
    }

    .header-right {
        gap: 5px;
    }

    .header-button {
        padding: 6px 10px;
        font-size: 11px;
    }
}
