Changed around line 1
+ :root {
+ --primary-color: #2962ff;
+ --bg-color: #ffffff;
+ --text-color: #333333;
+ --message-bg-user: #e3f2fd;
+ --message-bg-ai: #f5f5f5;
+ --transition: all 0.3s ease;
+ }
+
+ [data-theme="dark"] {
+ --bg-color: #1a1a1a;
+ --text-color: #ffffff;
+ --message-bg-user: #1e3a5f;
+ --message-bg-ai: #2d2d2d;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
+ background-color: var(--bg-color);
+ color: var(--text-color);
+ line-height: 1.6;
+ transition: var(--transition);
+ }
+
+ header {
+ padding: 1rem;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
+ }
+
+ nav {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ .logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ background: linear-gradient(45deg, var(--primary-color), #1e88e5);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+ }
+
+ .theme-toggle {
+ background: none;
+ border: none;
+ font-size: 1.2rem;
+ cursor: pointer;
+ padding: 0.5rem;
+ border-radius: 50%;
+ transition: var(--transition);
+ }
+
+ .theme-toggle:hover {
+ background: rgba(0,0,0,0.1);
+ }
+
+ main {
+ max-width: 1000px;
+ margin: 2rem auto;
+ padding: 0 1rem;
+ }
+
+ .chat-container {
+ background: rgba(255,255,255,0.05);
+ border-radius: 1rem;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ overflow: hidden;
+ height: 70vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ .messages {
+ flex: 1;
+ overflow-y: auto;
+ padding: 1rem;
+ }
+
+ .message {
+ display: flex;
+ align-items: flex-start;
+ margin-bottom: 1rem;
+ animation: fadeIn 0.3s ease;
+ }
+
+ @keyframes fadeIn {
+ from { opacity: 0; transform: translateY(10px); }
+ to { opacity: 1; transform: translateY(0); }
+ }
+
+ .avatar {
+ width: 40px;
+ height: 40px;
+ border-radius: 50%;
+ background: var(--primary-color);
+ color: white;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-weight: bold;
+ flex-shrink: 0;
+ }
+
+ .content {
+ margin-left: 1rem;
+ padding: 1rem;
+ border-radius: 1rem;
+ max-width: 80%;
+ background: var(--message-bg-ai);
+ }
+
+ .message.user {
+ flex-direction: row-reverse;
+ }
+
+ .message.user .content {
+ margin-left: 0;
+ margin-right: 1rem;
+ background: var(--message-bg-user);
+ }
+
+ .input-container {
+ padding: 1rem;
+ display: flex;
+ gap: 1rem;
+ background: rgba(255,255,255,0.05);
+ border-top: 1px solid rgba(0,0,0,0.1);
+ }
+
+ textarea {
+ flex: 1;
+ padding: 0.8rem;
+ border: 1px solid rgba(0,0,0,0.1);
+ border-radius: 0.5rem;
+ resize: none;
+ background: var(--bg-color);
+ color: var(--text-color);
+ font-family: inherit;
+ transition: var(--transition);
+ }
+
+ textarea:focus {
+ outline: none;
+ border-color: var(--primary-color);
+ }
+
+ button {
+ background: var(--primary-color);
+ color: white;
+ border: none;
+ border-radius: 0.5rem;
+ padding: 0.8rem;
+ cursor: pointer;
+ transition: var(--transition);
+ }
+
+ button:hover {
+ transform: scale(1.05);
+ }
+
+ button svg {
+ fill: currentColor;
+ }
+
+ footer {
+ text-align: center;
+ padding: 2rem;
+ color: var(--text-color);
+ opacity: 0.8;
+ }
+
+ @media (max-width: 768px) {
+ .chat-container {
+ height: 80vh;
+ }
+
+ .content {
+ max-width: 90%;
+ }
+ }