:root {
  --primary: #6c43f5;
  --secondary: #0d0d2b;
  --accent: #00f3ff;
  --success: #00d97e;
  --warning: #ffaa33;
  --danger: #ff4d4d;
  --dark: #0a0a1a;
  --light: #f0f0ff;
  --gray: #2d2d4f;
}

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

body {
  background: linear-gradient(135deg, var(--dark), #050515);
  color: var(--light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
header {
  text-align: center;
  padding: 20px 0;
  position: relative;
  border-bottom: 1px solid var(--gray);
  margin-bottom: 30px;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.quantum {
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.clock, .weather {
  font-size: 1.2rem;
  margin: 5px 0;
  color: var(--accent);
}

/* Module Styles */
.module {
  background: rgba(13, 13, 43, 0.7);
  border: 1px solid var(--primary);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(108, 67, 245, 0.15);
  backdrop-filter: blur(10px);
}

.module h2 {
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
}

.module h2:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
}

.input-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

input, select, textarea {
  background: rgba(25, 25, 65, 0.8);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--light);
  font-size: 1rem;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.3);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: linear-gradient(90deg, var(--primary), #8a63f5);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 67, 245, 0.4);
}

button:active {
  transform: translateY(0);
}

/* File Upload */
.file-dropzone {
  border: 2px dashed var(--primary);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  background: rgba(25, 25, 65, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  grid-column: span 2;
}

.file-dropzone:hover {
  border-color: var(--accent);
  background: rgba(25, 25, 65, 0.5);
}

/* Format Options */
.format-options {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.format-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(25, 25, 65, 0.7);
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.format-options input[type="radio"]:checked + label {
  background: var(--primary);
  border-color: var(--accent);
}

/* Result Boxes */
.result-box {
  background: rgba(25, 25, 65, 0.8);
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  min-height: 100px;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Memory Styles */
.memory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.memory-item {
  background: rgba(25, 25, 65, 0.7);
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.memory-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.memory-item h4 {
  color: var(--accent);
  margin-bottom: 8px;
}

.memory-meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 8px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid var(--gray);
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .input-group {
    grid-template-columns: 1fr;
  }
  
  .format-options {
    flex-direction: column;
    gap: 8px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .module {
    padding: 15px;
  }
}

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 243, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Alerts */
.ai-alert {
  background: rgba(0, 243, 255, 0.1);
  border-left: 3px solid var(--accent);
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 8px 8px 0;
}

.success {
  border-left-color: var(--success);
  background: rgba(0, 217, 126, 0.1);
}

.warning {
  border-left-color: var(--warning);
  background: rgba(255, 170, 51, 0.1);
}