/* ===== MODERN BEAUTIFUL CSS ===== */

/* Import beautiful fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-accent: #f1f5f9;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.875rem;
  color: var(--text-accent);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Modern Buttons */
button, .btn {
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

button:before, .btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

button:hover:before, .btn:hover:before {
  left: 100%;
}

button.primary, .btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

button.primary:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button.secondary, .btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

button.secondary:hover, .btn-secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

button.danger, .btn-danger {
  background: var(--danger-gradient);
  color: white;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-md);
}

button.danger:hover, .btn-danger:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Modern Form Elements */
input, textarea, select {
  font-family: inherit;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: var(--bg-tertiary);
}

input::placeholder, textarea::placeholder {
  color: var(--text-secondary);
}

/* Modern Cards & Containers */
.window, .card {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  margin: 2rem auto;
  max-width: 600px;
  position: relative;
}

.window:before, .card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
  border-radius: 20px 20px 0 0;
}

/* Beautiful Lists */
ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 1rem;
}

li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

li a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

li a:hover {
  background: var(--bg-tertiary);
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

li a:hover:before {
  transform: scaleY(1);
}

/* Chat Interface */
.chat-window {
  background: rgba(15, 15, 35, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.chat-window::-webkit-scrollbar {
  width: 6px;
}

.chat-window::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.chat-window::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 3px;
}

.bubble {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  max-width: 80%;
  line-height: 1.5;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble.user {
  background: var(--primary-gradient);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 8px;
  box-shadow: var(--shadow-md);
}

.bubble.assistant {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  margin-right: auto;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 8px;
}

/* Input Sections */
.input-section {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.input-section input {
  flex: 1;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .window, .card {
    margin: 1rem;
    padding: 1.5rem;
    max-width: calc(100% - 2rem);
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .input-section {
    flex-direction: column;
  }
  
  .bubble {
    max-width: 95%;
  }
}

/* Loading Animations */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: #667eea;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
}

.status-indicator.success {
  background: rgba(67, 233, 123, 0.1);
  color: #43e97b;
  border-color: rgba(67, 233, 123, 0.3);
}

.status-indicator.warning {
  background: rgba(255, 159, 67, 0.1);
  color: #ff9f43;
  border-color: rgba(255, 159, 67, 0.3);
}

.status-indicator.error {
  background: rgba(250, 112, 154, 0.1);
  color: #fa709a;
  border-color: rgba(250, 112, 154, 0.3);
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
  