* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

:root {
    --primary: #c62828;
    --primary-dark: #8e0000;
    --primary-light: #ff5f52;
    --text: #ffffff;
    --bg: #c62828;
    --card-bg: #151515;
    --accent: #ff3d3d;
    --input-bg: #151515;
    --msg-bg: #151515;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(to bottom right, var(--primary), var(--primary-dark));
}

.navbar {
    box-sizing: border-box;
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(140, 0, 0, 0.4);
    border-radius: 8px;
    margin: 15px 20px;
    z-index: 100;
    position: static;
    padding: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.navbar a {
    font-family: "Outfit", sans-serif;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.paradise-logo {
    display: flex;
    align-items: center;
}

.paradise-logo img {
    width: 45px;
    height: 45px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar a:not(:first-child) {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar a:not(:first-child) i {
    margin-right: 8px;
}

.navbar a:not(:first-child):hover {
    font-size: 18px;
    color: #484c51;
    background-color: #e7928f;
    border-radius: 10px;
    scale: 1.05;
}

.navbar a:first-child {
    padding: 10px 25px;
    font-size: 26px;
    font-weight: 650;
    margin-right: auto;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar a:first-child:hover {
    transform: translateX(10px);
    color: #484c51;
    background-color: #e7928f;
    border-radius: 10px;
    scale: 1.1;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    max-width: 32rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.3s ease forwards;
}

.message.user {
    margin-left: auto;
}

.message.ai {
    margin-right: auto;
}

.bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: pre-wrap;
    border: 1px solid transparent;
}

.bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.user .bubble {
    background: var(--primary-dark);
    margin-left: 2rem;
    position: relative;
    border-bottom-right-radius: 0;
}

.ai .bubble {
    background: var(--card-bg);
    margin-right: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 0;
    position: relative;
}

.input-wrap {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 1rem;
}

.input-box {
    background: rgba(21, 21, 21, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-box:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    outline: solid 1px rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

input:focus {
    outline: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-selected {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 300ms ease-in-out;
    font-weight: 500;
}

.dropdown-selected:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: var(--text);
}
        
.dropdown-options {
    position: absolute;
    bottom: 100%;
    margin-bottom: 20px;
    right: 0;
    width: 190px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--card-bg);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 300ms ease-in-out;
    border-radius: 10px;
    animation: moveDown 300ms forwards;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dropdown-options div {
    padding: 10px;
    margin: 8px;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    border-radius: 5px;
    font-weight: 500;
}

.dropdown-options div:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: moveUp 300ms forwards;
}

@keyframes moveUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes moveDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}
        
button {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

button:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .chat {
        padding: 1rem 0;
    }
    
    .message {
        max-width: 85%;
    }

    .navbar a:not(:first-child) span {
        display: none;
    }
}

code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    font-size: 0.85em;
    font-family: 'Fira Code', monospace;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin: 0.5em 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.9em;
}

strong {
    color: white;
    font-weight: 600;
}

em {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.loader {
    border: solid rgba(255, 255, 255, 0.4) 4px;
    border-top-color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: loader 1s linear infinite;
}

@keyframes loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background-color: rgba(110, 0, 0, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
}

.new-chat-btn {
    background-color: var(--primary-dark);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.new-chat-btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-item {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-item.active {
    background-color: rgba(0, 0, 0, 0.3);
}

.chat-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.delete-btn {
    opacity: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
}

.chat-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    color: var(--text);
    transform: scale(1.1);
}

.empty-chats {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px;
}

.toggle-sidebar {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 10px;
}