:root {
  /* Color Palette - Deep Professionalism with Energy */
  --bg-dark: #0a0c10;
  --bg-card: #161b22;
  --accent-primary: #58a6ff;
  --accent-secondary: #3fb950;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --border-color: #30363d;
  --hover-color: #21262d;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: var(--space-xl);
  max-width: calc(100% - 260px);
}

/* Sidebar Elements */
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  color: var(--accent-primary);
}

.nav-list {
  list-style: none;
  flex: 1;
}

.nav-item {
  margin-bottom: var(--space-xs);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--hover-color);
  color: var(--text-main);
}

.nav-link.active {
  background-color: rgba(88, 166, 255, 0.1);
  color: var(--accent-primary);
}

/* Dashboard Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.header-title h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.header-title p {
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
}

.btn-outline {
  border-color: var(--border-color);
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--hover-color);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-trend {
  font-size: 0.75rem;
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up { color: var(--accent-secondary); }

/* Grid Sections */
.grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

/* Panels/Cards */
.panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.panel-title {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Table */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: rgba(63, 185, 80, 0.15); color: #56d364; }
.badge-warning { background: rgba(210, 153, 34, 0.15); color: #e3b341; }
.badge-info { background: rgba(88, 166, 255, 0.15); color: #58a6ff; }

/* Placeholder Graphics */
.placeholder-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.placeholder-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* Schedule List */
.schedule-list {
  list-style: none;
}

.schedule-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  min-width: 60px;
  font-weight: 700;
  color: var(--accent-primary);
}

.schedule-info h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.schedule-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Client Details Styles */
.profile-header {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  background: var(--hover-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid var(--border-color);
}

.profile-info h2 {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.tag-container {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.progress-track {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  width: 100%;
  margin-top: var(--space-sm);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent-secondary);
}

/* Notes Section */
.note-card {
  padding: var(--space-md);
  border-left: 3px solid var(--accent-primary);
  background: var(--hover-color);
  margin-bottom: var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.note-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }
}
