/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg-primary: #1e1e2f;
  --bg-secondary: #2a2a3d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-
  color: var(--accent-color);
--border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --text-primary: #1e1e2f;
  --text-secondary: #666666;
  --accent-color: #0070f3;
  --border-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.8);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-switcher button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-switcher button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
}
/* Container principal */
.container {
  display: flex;
  height: 100vh;
}

/* Colonne 1 - Sidebar */
.sidebar {
  width: 300px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 20px;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.logo h2 {
  color: var(--accent-color);
font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.actions {
  margin-bottom: 30px;
}

.action-btn {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn .icon {
  font-size: 16px;
}

.action-btn.primary {
  background: linear-gradient(135deg, #ff4081, #e91e63);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.projects-section h3 {
  color: #64ffda;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-item {
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.project-item.completed {
  border-left-color: #4caf50;
}

.project-item.in-progress {
  border-left-color: #ff9800;
}

.project-item.draft {
  border-left-color: #2196f3;
}

.project-item.new {
  border-left-color: #9c27b0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-name {
  font-weight: 500;
  color: var(--text-primary);
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.completed {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status-badge.in-progress {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.status-badge.draft {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
}

.status-badge.new {
  background: rgba(156, 39, 176, 0.2);
  color: #9c27b0;
}
/* Colonne 2 - Main Content */
.main {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.main-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #64ffda, #00bcd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-header p {
  color: var(--text-secondary);
margin-bottom: 30px;
  font-size: 16px;
}

/* Barre de recherche améliorée */
.search-section {
  margin-bottom: 30px;
}

.search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: #64ffda;
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.search-bar input {
  flex: 1;
  padding: 16px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  outline: none;
}

.search-bar input::placeholder {
  color: #888;
}

.generate-btn, .voice-btn {
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.generate-btn {
  background: linear-gradient(135deg, #64ffda, #00bcd4);
  color: #1e1e2f;
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
}

.generate-btn:active {
  transform: translateY(0);
}

.voice-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 50px;
  height: 50px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.voice-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Module Rosalinda intégré */
.rosalinda-module {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(0, 188, 212, 0.1));
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.rosalinda-module:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.2);
}

.rosalinda-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.rosalinda-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #64ffda, #00bcd4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.rosalinda-module h4 {
  color: #64ffda;
  font-size: 18px;
  margin: 0 0 4px 0;
  font-weight: 700;
}

.rosalinda-module p {
  color: #b0b0b0;
  font-size: 14px;
  margin: 0;
}

.rosalinda-module .badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff4081, #e91e63);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(255, 64, 129, 0.3);
}
/* Bloc de génération de code */
.code-output {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.code-output:hover {
  border-color: rgba(100, 255, 218, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-header h3 {
  color: #64ffda;
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.output-actions {
  display: flex;
  gap: 10px;
}

.copy-btn, .clear-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.copy-btn:hover {
  background: rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
}

.clear-btn {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.clear-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-1px);
}

.code-display {
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #e0e0e0;
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin: 0;
  border: none;
  border-radius: 0;
}

.code-display::-webkit-scrollbar {
  width: 6px;
}

.code-display::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.code-display::-webkit-scrollbar-thumb {
  background: rgba(100, 255, 218, 0.5);
  border-radius: 3px;
}

.code-display::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 255, 218, 0.7);
}
.examples-section h4 {
  color: #64ffda;
  margin-bottom: 15px;
  font-size: 16px;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.example-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.example-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
}

/* Colonne 3 - Settings */
.settings {
  width: 320px;
  background: linear-gradient(180deg, #2a2a3d 0%, #1f1f2e 100%);
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

.rosalinda {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.rosalinda-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.rosalinda-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #64ffda, #00bcd4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.rosalinda h3 {
  color: #64ffda;
  font-size: 18px;
  margin-bottom: 4px;
}

.rosalinda-status {
  color: #b0b0b0;
  font-size: 14px;
}

.rosalinda-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-item .label {
  color: #888;
  font-size: 13px;
}

.info-item .value {
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
}

.columns {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column-section h4 {
  color: #64ffda;
  font-size: 14px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #64ffda;
}

.stat-label {
  font-size: 12px;
  color: #888;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-item label {
  color: #b0b0b0;
  font-size: 13px;
}

.setting-item select {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
}

.setting-item input[type="checkbox"] {
  margin-right: 8px;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.quick-icon {
  font-size: 16px;
}

.quick-text {
  font-size: 14px;
  font-weight: 500;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 255, 218, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 255, 218, 0.7);
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    padding: 15px;
  }
  
  .main {
    padding: 20px;
  }
  
  .settings {
    width: 100%;
    height: auto;
    padding: 15px;
  }
  
  .actions {
    display: flex;
    gap: 10px;
  }
  
  .action-btn {
    flex: 1;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    gap: 10px;
  }
  
  .generate-btn, .voice-btn {
    width: 100%;
  }
  
  .examples {
    flex-direction: column;
  }
  
  .output-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
}