Upload style.css
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192/* --- Dəyişənlər və Ümumi Ayarlar --- */
:root {
/* Əsas Rənglər */
--bg-dark: #0a0e17; /* Çox tünd göy-qara arxa fon */
--glass-bg: rgba(255, 255, 255, 0.05); /* Şüşə effekti üçün şəffaf ağ */
--glass-border: rgba(255, 255, 255, 0.1);
--accent-blue: #3b82f6; /* Vurğu rəngi (Mavi) */
--text-white: #ffffff;
--text-gray: #9ca3af;
/* Blur şiddəti */
--blur-amount: 16px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background: radial-gradient(circle at top right, #1e3a8a, transparent 40%),
radial-gradient(circle at bottom left, #000000, transparent 40%),
var(--bg-dark);
background-attachment: fixed; /* Arxa fon sabit qalsın */
color: var(--text-white);
height: 100vh;
overflow: hidden;
}
/* --- Şüşə (Glassmorphism) Effekti Verən Sinif --- */
.glass {
background: var(--glass-bg);
backdrop-filter: blur(var(--blur-amount));
-webkit-backdrop-filter: blur(var(--blur-amount)); /* Safari üçün */
border: 1px solid var(--glass-border);
}
/* --- Səhifə Yükləmə Animasiyası --- */
.page-loader {
position: fixed; inset: 0; z-index: 9999;
background: var(--bg-dark);
display: flex; flex-direction: column;
justify-content: center; align-items: center;
transition: opacity 0.5s ease;
}
.loader-spinner {
width: 50px; height: 50px;
border: 5px solid var(--glass-bg);
border-top: 5px solid var(--accent-blue);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
/* --- Layout (Struktur) --- */
.app-container {
display: flex;
height: 100vh;
padding: 20px;
gap: 20px;
}
/* --- Sol Sidebar (Tarixçə) --- */
.sidebar {
width: 280px;
border-radius: 24px;
padding: 20px;
display: flex; flex-direction: column;
transition: all 0.3s ease;
}
.brand {
font-size: 24px; font-weight: bold; margin-bottom: 30px;
display: flex; align-items: center; gap: 10px;
color: var(--accent-blue);
animation: slideDown 0.5s ease;
}
.new-chat-btn {
width: 100%; padding: 12px; border-radius: 12px;
border: none; color: var(--text-white); font-size: 16px;
cursor: pointer; display: flex; align-items: center; gap: 10px;
background: rgba(59, 130, 246, 0.2); /* Mavi şəffaf */
transition: all 0.3s ease;
}
.new-chat-btn:hover { background: var(--accent-blue); transform: translateY(-2px); }
.history-title { color: var(--text-gray); font-size: 14px; margin: 20px 0 10px; }
.history-item {
padding: 10px 15px; border-radius: 10px; margin-bottom: 5px;
cursor: pointer; transition: all 0.2s ease; font-size: 14px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.glass-hover:hover { background: rgba(255, 255, 255, 0.1); }
/* --- Sağ Əsas Chat Sahəsi --- */
.chat-area {
flex: 1;
border-radius: 24px;
display: flex; flex-direction: column;
overflow: hidden; /* Daşmaların qarşısını alır */
position: relative;
}
.chat-header {
padding: 15px 25px;
border-bottom: 1px solid var(--glass-border);
text-align: center; font-weight: 500; color: var(--text-gray);
}
.chat-window {
flex: 1; overflow-y: auto; padding: 25px;
display: flex; flex-direction: column; gap: 20px;
scroll-behavior: smooth;
}
/* --- Mesaj Stili və Animasiyaları --- */
.message-wrapper {
display: flex; gap: 15px; max-width: 80%;
animation: messageAppear 0.4s ease forwards; /* Mesaj çıxma animasiyası */
opacity: 0; transform: translateY(20px);
}
@keyframes messageAppear { to { opacity: 1; transform: translateY(0); } }
.avatar {
width: 40px; height: 40px; border-radius: 50%;
display: flex; justify-content: center; align-items: center; font-size: 18px;
flex-shrink: 0;
}
.bot-avatar { background: linear-gradient(135deg, var(--accent-blue), #60a5fa); }
.user-avatar { background: linear-gradient(135deg, #10b981, #34d399); }
.message {
padding: 15px 20px; border-radius: 18px; line-height: 1.6;
position: relative;
}
/* Bot Mesajı (Solda) */
.bot-wrapper { align-self: flex-start; }
.bot-message { border-top-left-radius: 4px; background: rgba(255, 255, 255, 0.08); }
/* İstifadəçi Mesajı (Sağda) */
.user-wrapper { align-self: flex-end; flex-direction: row-reverse; }
.user-message {
border-top-right-radius: 4px;
background: rgba(59, 130, 246, 0.3); /* Mavi şüşə */
border-color: rgba(59, 130, 246, 0.5);
}
/* --- Bot Yazır Animasiyası --- */
.typing-indicator {
display: flex; gap: 15px; padding-left: 25px; margin-bottom: 20px;
}
.hidden { display: none; }
.typing-bubbles {
padding: 15px 20px; border-radius: 18px; border-top-left-radius: 4px;
display: flex; gap: 5px; align-items: center;
}
.bubble {
width: 8px; height: 8px; background: var(--text-gray); border-radius: 50%;
animation: bounce 1.4s infinite ease-in-out both;
}
.bubble:nth-child(1) { animation-delay: -0.32s; }
.bubble:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
/* --- Input Sahəsi --- */
.input-container {
padding: 20px;
border-top: 1px solid var(--glass-border);
}
.input-wrapper {
display: flex; gap: 10px; padding: 5px;
border-radius: 16px; background: rgba(0,0,0, 0.2);
border: 1px solid var(--glass-border); transition: all 0.3s ease;
}
.input-wrapper:focus-within {
border-color: var(--accent-blue); box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
input {
flex: 1; background: transparent; border: none; padding: 12px 15px;
color: var(--text-white); font-size: 16px; outline: none;
}
.send-btn {
width: 45px; height: 45px; border-radius: 12px; border: none;
background: var(--accent-blue); color: white; cursor: pointer;
transition: all 0.3s ease; display: flex; justify-content: center; align-items: center;
}
.send-btn:hover { background: #2563eb; transform: scale(1.05); }static/style.cssAdded+192