@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Ultra-Modern "Obsidian & Emerald" Palette */
  --primary: #00f090;             /* "Neon" Emerald */
  --primary-hover: #00d080;
  --primary-soft: rgba(0, 240, 144, 0.1);
  --secondary: #6366f1;
  --accent: #f59e0b;
  
  /* Layout Surfaces */
  --sidebar-width: 280px;
  --sidebar-bg: #0f172a;        /* Deep Obsidian */
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  
  --bg-body: #f1f5f9;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  
  /* Elevated Effects */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body {
  margin: 0;
  background-color: var(--bg-body);
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../Image/final.png") no-repeat center center;
  background-size: 40% auto;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

/* Radical Top-Bar Architecture */
.main-content {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-bar {
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2%;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}


.top-bar-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.top-bar-logo span span {
  font-weight: 300;
  color: var(--text-muted);
}


/* Content Container */
.page-container {
  padding: 1.5rem 2%;
  width: 100%;
}

/* "Command Center" Dashboard Styles */
.dashboard-hub {
  padding: 1.5rem 2%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Advanced Card Design */
.widget-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.widget-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.widget-body {
  padding: 2rem;
}

/* Pill UI Elements */
.pill-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-body);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Button & Nav Refinements */
.btn-modern {
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-theme {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #0f172a;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-theme:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 144, 0.3);
}

.text-theme {
  color: var(--primary) !important;
}

.bg-theme-soft {
  background-color: var(--primary-soft) !important;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: var(--bg-body);
  border-color: var(--primary);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

@media (max-width: 991px) {
  .sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
  }
  .main-content {
    margin-left: 0;
  }
}