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

:root {
  --primary: #d4af37;
  --dark-bg: #0f0f0f;
  --dark-card: #1a1a1a;
  --dark-border: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #00d4ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.login-box {
  background: var(--dark-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  background: #0f0f0f;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #c9a037 100%);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

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

.error-message {
  background: rgba(255, 67, 67, 0.1);
  border: 1px solid rgba(255, 67, 67, 0.3);
  color: #ff4343;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.error-message.show {
  display: block;
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--dark-card);
  border-right: 1px solid var(--dark-border);
  padding: 30px 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 15px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
}

.nav-link.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary);
  border-left-color: var(--primary);
}

.nav-icon {
  font-size: 20px;
}

.logout-btn {
  margin-top: 30px;
  padding: 12px 16px;
  background: rgba(255, 67, 67, 0.1);
  color: #ff4343;
  border: 1px solid rgba(255, 67, 67, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s ease;
}

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

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 30px;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.page-header {
  margin-bottom: 30px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.content-grid {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 4px;
}

.prompt-item {
  background: #0f0f0f;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.prompt-item:hover {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.05);
}

.prompt-info {
  flex: 1;
}

.prompt-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.prompt-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.toggle-switch {
  width: 50px;
  height: 28px;
  background: #333;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 12px;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.toggle-switch.active::after {
  left: 24px;
}

.recordings-list {
  display: grid;
  gap: 16px;
}

.recording-item {
  background: #0f0f0f;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.recording-item:hover {
  border-color: var(--primary);
}

.recording-info {
  flex: 1;
}

.recording-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.recording-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 16px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

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

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

.btn {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.analyzed-report {
  background: #0f0f0f;
  padding: 16px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--dark-border);
  margin-bottom: 12px;
}

.report-info h4 {
  margin-bottom: 4px;
}

.report-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.report-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }

  .main-content {
    margin-left: 240px;
  }

  .page-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
  }

  .main-content {
    margin-left: 0;
  }

  .dashboard {
    flex-direction: column;
  }

  .login-box {
    margin: 20px;
  }

  .page-title {
    font-size: 20px;
  }
}
