* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #131314;
    color: #e3e3e3;
    height: 100vh;
    overflow: hidden;
}

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

/* Red & Golden JV Logo Styling */
.jv-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jv-logo-img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
}

.jv-logo-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #d32f2f, #8b0000);
    border: 2px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.jv-logo-badge.small-badge {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
}

.jv-logo-badge span {
    color: #ffd700;
    font-weight: 900;
    font-size: 1.1rem;
    font-family: 'Arial Black', sans-serif;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #1e1f20;
    display: flex;
    flex-direction: column;
    padding: 16px;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-header {
    margin-bottom: 16px;
}

.icon-btn {
    background: none;
    border: none;
    color: #c4c7c5;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.icon-btn:hover {
    background-color: #28292a;
}

.new-chat-btn {
    background-color: #1a1a1c;
    color: #e3e3e3;
    border: 1px solid #444746;
    border-radius: 24px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 24px;
}

.new-chat-btn:hover {
    background-color: #28292a;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.menu-item, .recent-item {
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #c4c7c5;
    cursor: pointer;
}

.menu-item:hover, .recent-item:hover {
    background-color: #28292a;
}

.recent-section {
    flex: 1;
    overflow-y: auto;
}

.recent-title {
    font-size: 0.8rem;
    color: #8e918f;
    margin-bottom: 8px;
    padding-left: 12px;
}

.sidebar-footer {
    border-top: 1px solid #28292a;
    padding-top: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #131314;
    position: relative;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

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

.model-dropdown, .lang-dropdown {
    background-color: #1e1f20;
    color: #e3e3e3;
    border: 1px solid #444746;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
}

/* Chat & Welcome Area */
.chat-viewport {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.welcome-screen {
    max-width: 800px;
    width: 100%;
    margin-top: 60px;
    text-align: center;
}

.welcome-title {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #ffd700, #e91e63, #4285f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
}

.suggestion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    background-color: #1e1f20;
    padding: 20px;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.card:hover {
    background-color: #28292a;
    border-color: #ffd700;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}

.chat-messages {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.6;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
    background-color: #28292a;
    color: #ffd700;
    border: 1px solid #444746;
}

.message.bot {
    align-self: flex-start;
    background-color: transparent;
    color: #e3e3e3;
}

/* Image Preview */
.image-preview {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 8px;
}

.image-preview img {
    max-height: 80px;
    border-radius: 8px;
    border: 2px solid #ffd700;
}

.close-img-btn {
    position: absolute;
    top: 0;
    background: #ff5252;
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Bottom Input Box */
.prompt-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

.prompt-box {
    background-color: #1e1f20;
    border-radius: 28px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 12px;
    border: 1px solid #444746;
}

.prompt-box input {
    flex: 1;
    background: none;
    border: none;
    color: #e3e3e3;
    font-size: 1rem;
    outline: none;
}

.prompt-btn {
    background: none;
    border: none;
    color: #c4c7c5;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.prompt-btn:hover {
    background-color: #28292a;
    color: #ffd700;
}

.send-btn {
    color: #ffd700;
}

/* Attach Popup Menu */
.attach-wrapper {
    position: relative;
}

.attach-menu {
    position: absolute;
    bottom: 50px;
    left: 0;
    background-color: #28292a;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    width: 160px;
    z-index: 100;
    border: 1px solid #444746;
}

.attach-option {
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #e3e3e3;
}

.attach-option:hover {
    background-color: #3c4043;
    color: #ffd700;
}

.disclaimer-text {
    font-size: 0.75rem;
    color: #8e918f;
    text-align: center;
    margin-top: 8px;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        height: 100%;
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
        width: 260px;
    }
    .mobile-only {
        display: block;
    }
}
