Spaces:
Sleeping
Sleeping
/* Base Styles & Reset */ | |
:root { | |
--primary-color: #7710ee; | |
--primary-light: rgba(119, 16, 238, 0.55); | |
--background-dark: rgb(2,2,8); | |
--background-light: rgb(5,5,20); | |
--text-primary: #e1e1e1; | |
--text-secondary: #b4b4b4; | |
--surface-1: rgba(40, 40, 60, 0.6); | |
--surface-2: rgba(50, 50, 70, 0.4); | |
--surface-3: rgba(60, 60, 80, 0.4); | |
--border-color: rgba(255, 255, 255, 0.07); | |
--shadow-color: rgba(0, 0, 0, 0.2); | |
--transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
} | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
/* Scrollbar Styling */ | |
::-webkit-scrollbar { | |
width: 8px; | |
} | |
::-webkit-scrollbar-track { | |
background: rgba(0, 0, 0, 0.2); | |
border-radius: 10px; | |
} | |
::-webkit-scrollbar-thumb { | |
background: rgba(255, 255, 255, 0.1); | |
border-radius: 10px; | |
border: 2px solid rgba(255, 255, 255, 0.05); | |
} | |
::-webkit-scrollbar-thumb:hover { | |
background: rgba(255, 255, 255, 0.2); | |
} | |
/* Base Layout */ | |
html, body { | |
height: 100vh; | |
width: 100vw; | |
overflow: hidden; | |
font-family: 'Inter', sans-serif; | |
background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%); | |
color: var(--text-primary); | |
line-height: 1.6; | |
} | |
/* Navigation Styles */ | |
.nav-container { | |
position: fixed; | |
top: 0; | |
width: 100%; | |
height: 60px; | |
background: rgba(10, 10, 20, 0.7); | |
backdrop-filter: blur(10px); | |
border-bottom: 1px solid var(--border-color); | |
z-index: 1000; | |
} | |
.nav-content { | |
max-width: 1400px; | |
margin: 0 auto; | |
height: 100%; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding: 0 20px; | |
} | |
.nav-left, .nav-right { | |
display: flex; | |
align-items: center; | |
gap: 20px; | |
} | |
.brand { | |
display: flex; | |
align-items: baseline; | |
gap: 8px; | |
} | |
.brand-text { | |
font-family: 'Poppins', sans-serif; | |
font-weight: 600; | |
font-size: 1.25rem; | |
background: linear-gradient(45deg, #7710ee, #b44dff); | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
} | |
.brand-version { | |
font-size: 0.75rem; | |
color: var(--text-secondary); | |
} | |
/* Hamburger Menu */ | |
.hamburger { | |
display: flex; | |
flex-direction: column; | |
gap: 6px; | |
cursor: pointer; | |
padding: 8px; | |
} | |
.line1, .line2 { | |
height: 2px; | |
transition: var(--transition-standard); | |
} | |
.line1 { | |
width: 24px; | |
background: linear-gradient(90deg, #7710ee, #b44dff); | |
} | |
.line2 { | |
width: 16px; | |
background: linear-gradient(90deg, #7710ee, #b44dff); | |
} | |
.hamburger:hover .line1 { | |
transform: translateX(-4px); | |
} | |
.hamburger:hover .line2 { | |
transform: translateX(4px); | |
} | |
/* Sidebar Menu */ | |
.menu { | |
position: fixed; | |
top: 0; | |
left: 0; | |
height: 100vh; | |
width: 0; | |
background: rgba(20, 20, 30, 0.95); | |
backdrop-filter: blur(15px); | |
border-right: 1px solid var(--border-color); | |
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
z-index: 900; | |
display: flex; | |
flex-direction: column; | |
} | |
.menu.open { | |
width: 300px; | |
} | |
.menu-header { | |
padding: 80px 20px 20px; | |
border-bottom: 1px solid var(--border-color); | |
} | |
.new-chat { | |
display: flex; | |
align-items: center; | |
gap: 12px; | |
padding: 12px 16px; | |
background: var(--surface-1); | |
border: 1px solid var(--border-color); | |
border-radius: 8px; | |
color: var(--text-primary); | |
cursor: pointer; | |
transition: var(--transition-standard); | |
} | |
.new-chat:hover { | |
background: var(--surface-2); | |
transform: translateY(-2px); | |
} | |
.menu-content { | |
flex: 1; | |
overflow-y: auto; | |
padding: 20px; | |
} | |
.chats-header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-bottom: 16px; | |
} | |
.chats-title { | |
font-size: 0.875rem; | |
text-transform: uppercase; | |
letter-spacing: 0.05em; | |
color: var(--text-secondary); | |
} | |
.prev-chats-cont { | |
display: flex; | |
flex-direction: column; | |
gap: 8px; | |
} | |
.chat-item { | |
display: flex; | |
align-items: center; | |
gap: 12px; | |
padding: 12px; | |
border-radius: 8px; | |
cursor: pointer; | |
transition: var(--transition-standard); | |
} | |
.chat-item:hover { | |
background: var(--surface-1); | |
} | |
/* Main Container */ | |
.container { | |
margin-top: 60px; | |
height: calc(100vh - 60px); | |
display: flex; | |
flex-direction: column; | |
padding: 20px; | |
} | |
.messages { | |
flex: 1; | |
overflow-y: auto; | |
padding: 20px; | |
display: flex; | |
flex-direction: column; | |
gap: 24px; | |
} | |
/* Message Styles */ | |
.message { | |
max-width: 80%; | |
padding: 16px; | |
border-radius: 12px; | |
border: 1px solid var(--border-color); | |
backdrop-filter: blur(10px); | |
} | |
.user-message { | |
margin-left: auto; | |
background: var(--surface-2); | |
} | |
.ai-message { | |
margin-right: auto; | |
background: var(--surface-1); | |
} | |
/* Input Area */ | |
.input-container { | |
margin-top: auto; | |
padding: 20px; | |
} | |
.inputs { | |
display: flex; | |
align-items: center; | |
gap: 12px; | |
padding: 12px 20px; | |
background: var(--surface-2); | |
border: 1px solid var(--border-color); | |
border-radius: 16px; | |
backdrop-filter: blur(10px); | |
/* Input Area (continued) */ | |
.text-box { | |
flex: 1; | |
background: none; | |
border: none; | |
outline: none; | |
color: var(--text-primary); | |
font-family: 'Inter', sans-serif; | |
font-size: 1rem; | |
line-height: 1.5; | |
max-height: 200px; | |
resize: none; | |
padding: 8px; | |
} | |
.text-box::placeholder { | |
color: var(--text-secondary); | |
} | |
.web-search, | |
.send-btn { | |
background: none; | |
border: none; | |
color: var(--text-secondary); | |
font-size: 1.2rem; | |
cursor: pointer; | |
padding: 8px; | |
border-radius: 8px; | |
transition: var(--transition-standard); | |
} | |
.web-search:hover, | |
.send-btn:hover { | |
color: var(--text-primary); | |
background: var(--surface-1); | |
} | |
.input-footer { | |
text-align: center; | |
margin-top: 8px; | |
} | |
.input-info { | |
font-size: 0.75rem; | |
color: var(--text-secondary); | |
} | |
/* Modal Styles */ | |
.modal, | |
.settings-modal { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100vw; | |
height: 100vh; | |
background: rgba(0, 0, 0, 0.5); | |
backdrop-filter: blur(5px); | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
z-index: 1100; | |
opacity: 0; | |
visibility: hidden; | |
transition: var(--transition-standard); | |
} | |
.modal.show, | |
.settings-modal.show { | |
opacity: 1; | |
visibility: visible; | |
} | |
.modal-content, | |
.settings-content { | |
background: var(--surface-1); | |
border: 1px solid var(--border-color); | |
border-radius: 16px; | |
width: 90%; | |
max-width: 500px; | |
padding: 24px; | |
position: relative; | |
transform: translateY(20px); | |
transition: var(--transition-standard); | |
} | |
.modal.show .modal-content, | |
.settings-modal.show .settings-content { | |
transform: translateY(0); | |
} | |
.modal-header, | |
.settings-header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-bottom: 20px; | |
} | |
.modal-header h2, | |
.settings-header h2 { | |
font-size: 1.5rem; | |
font-weight: 600; | |
color: var(--text-primary); | |
} | |
.close-modal, | |
.close-settings { | |
background: none; | |
border: none; | |
color: var(--text-secondary); | |
font-size: 1.2rem; | |
cursor: pointer; | |
padding: 8px; | |
border-radius: 8px; | |
transition: var(--transition-standard); | |
} | |
.close-modal:hover, | |
.close-settings:hover { | |
color: var(--text-primary); | |
background: var(--surface-2); | |
} | |
.modal-body { | |
margin-bottom: 24px; | |
} | |
.feature-list { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); | |
gap: 16px; | |
margin-top: 20px; | |
} | |
.feature-item { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
gap: 8px; | |
padding: 16px; | |
background: var(--surface-2); | |
border: 1px solid var(--border-color); | |
border-radius: 12px; | |
text-align: center; | |
} | |
.feature-item i { | |
font-size: 1.5rem; | |
color: var(--primary-color); | |
} | |
/* Settings Styles */ | |
.settings-section { | |
margin-bottom: 24px; | |
} | |
.settings-section h3 { | |
font-size: 1rem; | |
font-weight: 500; | |
color: var(--text-secondary); | |
margin-bottom: 16px; | |
} | |
.setting-item { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding: 12px 0; | |
border-bottom: 1px solid var(--border-color); | |
} | |
.theme-select, | |
.font-select { | |
background: var(--surface-2); | |
border: 1px solid var(--border-color); | |
border-radius: 8px; | |
color: var(--text-primary); | |
padding: 8px 12px; | |
cursor: pointer; | |
transition: var(--transition-standard); | |
} | |
.theme-select:hover, | |
.font-select:hover { | |
background: var(--surface-3); | |
} | |
/* Button Styles */ | |
.start-btn, | |
.discord-btn { | |
width: 100%; | |
padding: 12px 24px; | |
background: linear-gradient(45deg, var(--primary-color), #b44dff); | |
border: none; | |
border-radius: 8px; | |
color: white; | |
font-weight: 500; | |
cursor: pointer; | |
transition: var(--transition-standard); | |
} | |
.start-btn:hover, | |
.discord-btn:hover { | |
transform: translateY(-2px); | |
box-shadow: 0 4px 12px rgba(119, 16, 238, 0.3); | |
} | |
/* Responsive Design */ | |
@media screen and (max-width: 768px) { | |
.menu.open { | |
width: 100%; | |
} | |
.container { | |
padding: 10px; | |
} | |
.messages { | |
padding: 10px; | |
} | |
.message { | |
max-width: 90%; | |
} | |
.input-container { | |
padding: 10px; | |
} | |
.inputs { | |
padding: 8px 16px; | |
} | |
.feature-list { | |
grid-template-columns: 1fr; | |
} | |
} | |
/* Dark/Light Theme Transitions */ | |
.theme-transition { | |
transition: background-color 0.3s ease, | |
color 0.3s ease, | |
border-color 0.3s ease, | |
box-shadow 0.3s ease; | |
} | |
/* Animation Classes */ | |
.fade-in { | |
animation: fadeIn 0.3s ease forwards; | |
} | |
.slide-up { | |
animation: slideUp 0.3s ease forwards; | |
} | |
@keyframes fadeIn { | |
from { | |
opacity: 0; | |
} | |
to { | |
opacity: 1; | |
} | |
} | |
@keyframes slideUp { | |
from { | |
transform: translateY(20px); | |
opacity: 0; | |
} | |
to { | |
transform: translateY(0); | |
opacity: 1; | |
} | |
} | |
/* Utility Classes */ | |
.hidden { | |
display: none ; | |
} | |
.disabled { | |
opacity: 0.5; | |
pointer-events: none; | |
} | |
.truncate { | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |