/* HARMONI — App Styles */

:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --success: #2ec4b6;
  --sidebar-width: 260px;
  --sidebar-collapsed: 0px;
}

body {
  font-family: 'Prompt', sans-serif;
  background-color: #f5f6fa;
  font-size: 14px;
}

/* Sidebar */
#sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - 56px);
  transition: width 0.2s ease, transform 0.2s ease;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 1040;
}

#sidebar.collapsed {
  transform: translateX(-100%);
}

#main-content {
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - 56px);
  transition: margin-left 0.2s ease;
}

#main-content.expanded {
  margin-left: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  margin: 2px 8px;
  font-size: 13px;
  transition: all 0.15s;
  cursor: pointer;
}

.sidebar-link:hover {
  background-color: #e8eaff;
  color: var(--primary);
}

.sidebar-link.active {
  background-color: var(--primary);
  color: #fff;
}

.sidebar-link i {
  font-size: 16px;
  width: 24px;
  text-align: center;
  margin-right: 10px;
  flex-shrink: 0;
}

/* AI Panel */
#ai-panel {
  width: 360px;
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  z-index: 1040;
  transition: transform 0.2s ease;
}

/* Cards */
.card {
  border-radius: 12px;
}

.stat-card {
  border: none;
  border-radius: 12px;
  transition: transform 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

/* Student App */
.student-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  color: #888;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.15s;
  cursor: pointer;
}

.student-tab i {
  font-size: 20px;
  margin-bottom: 2px;
}

.student-tab.active {
  color: var(--success);
}

.student-tab:hover {
  color: var(--success);
}

/* Loading Spinner */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid #ddd;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

/* Responsive */
@media (max-width: 991.98px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.show {
    transform: translateX(0);
  }
  #main-content {
    margin-left: 0;
  }
  #ai-panel {
    width: 100%;
  }
}

/* Setup Wizard Progress */
.setup-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.setup-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.setup-progress-dot.active {
  background: var(--primary);
}

.setup-progress-dot.done {
  background: var(--success);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* Badge colors */
.badge-pending { background: #ffc107; color: #333; }
.badge-submitted { background: #17a2b8; color: #fff; }
.badge-graded { background: #28a745; color: #fff; }
.badge-returned { background: #dc3545; color: #fff; }
