/* AUTHENTIC OASIS DESIGN - PURE CSS (NO TAILWIND) */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Light mode base */
:root {
  --oasis-bg-light: #ffffff;
  --oasis-fg-light: #1a1a1a;
  --oasis-card-light: #f8f9fa;
  --oasis-border-light: #e5e7eb;
  --oasis-muted-light: #6b7280;
}

/* Oasis Dark Mode - Authentic Atmospheric Design */
.dark {
  /* Atmospheric gradient background - Multiple light sources */
  background:
    radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 40%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0f0f0f 50%, #1a1a1a 75%, #0a0a0a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Light mode default */
body {
  background: var(--oasis-bg-light);
  color: var(--oasis-fg-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

/* Sidebar layout */
.sidebar-layout {
  display: flex;
  min-height: 100vh;
}

/* Oasis Sidebar */
.oasis-sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid var(--oasis-border-light);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.dark .oasis-sidebar {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 2px 0 30px rgba(0, 0, 0, 0.5);
}

/* Sidebar header */
.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--oasis-border-light);
}

.dark .sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--oasis-fg-light);
  margin-bottom: 4px;
}

.dark .sidebar-logo {
  color: #fafafa;
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.sidebar-subtitle {
  font-size: 14px;
  color: var(--oasis-muted-light);
}

.dark .sidebar-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px;
}

.nav-group {
  margin-bottom: 32px;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--oasis-muted-light);
  margin-bottom: 4px;
}

.nav-button:hover {
  background: var(--oasis-card-light);
  color: var(--oasis-fg-light);
}

.nav-button.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.dark .nav-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.dark .nav-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #fafafa;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}

.dark .nav-button.active {
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.8) 0%,
    rgba(147, 51, 234, 0.9) 100%);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: white;
  box-shadow:
    0 4px 16px rgba(124, 58, 237, 0.4),
    0 0 20px rgba(124, 58, 237, 0.3);
}

/* Projects section */
.projects-section {
  margin-top: 32px;
}

.projects-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oasis-muted-light);
  margin-bottom: 12px;
  padding: 0 16px;
}

.dark .projects-title {
  color: rgba(255, 255, 255, 0.5);
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--oasis-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark .sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.version-info {
  font-size: 11px;
  color: var(--oasis-muted-light);
}

.dark .version-info {
  color: rgba(255, 255, 255, 0.5);
}

.theme-toggle {
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--oasis-muted-light);
}

.theme-toggle:hover {
  background: var(--oasis-card-light);
}

.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
  color: #fafafa;
}

/* Main content area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top header */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--oasis-border-light);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.dark .main-header {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--oasis-fg-light);
  text-transform: capitalize;
}

.dark .page-title {
  color: #fafafa;
}

/* Search input */
.search-container {
  position: relative;
}

.search-input {
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--oasis-border-light);
  border-radius: 8px;
  background: white;
  font-size: 14px;
  width: 300px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark .search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fafafa;
  backdrop-filter: blur(10px);
}

.dark .search-input:focus {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--oasis-muted-light);
}

.dark .search-icon {
  color: rgba(255, 255, 255, 0.5);
}

/* Content area */
.content-area {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

/* Oasis cards */
.oasis-card {
  background: white;
  border: 1px solid var(--oasis-border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.oasis-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.dark .oasis-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.dark .oasis-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.2) 0%,
    transparent 30%,
    rgba(236, 72, 153, 0.1) 70%,
    transparent 100%);
  border-radius: inherit;
  z-index: -1;
  filter: blur(8px);
}

.dark .oasis-card:hover {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(124, 58, 237, 0.2);
  transform: translateY(-4px);
}

/* Card content */
.card-content {
  color: var(--oasis-fg-light);
  line-height: 1.6;
  white-space: pre-wrap;
}

.dark .card-content {
  color: #fafafa;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--oasis-muted-light);
}

.dark .card-meta {
  color: rgba(255, 255, 255, 0.6);
}

/* Stats cards for dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border: 1px solid var(--oasis-border-light);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark .stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(124, 58, 237, 0.1);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--oasis-fg-light);
  margin-bottom: 8px;
}

.dark .stat-number {
  color: #fafafa;
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.stat-label {
  font-size: 14px;
  color: var(--oasis-muted-light);
}

.dark .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* Icon styling */
.lucide-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .oasis-sidebar {
    width: 240px;
  }

  .search-input {
    width: 200px;
  }
}