/* /static/style.css - Enhanced Dashboard Styles */

/* --- Import Font & Variabel Global --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Primary Colors */
  --primary-color: #1a73e8;
  --primary-dark-color: #1557b0;
  --primary-light-color: #e8f0fe;
  --primary-gradient: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  
  /* Semantic Colors */
  --success-color: #34a853;
  --success-light: #e8f5e9;
  --warning-color: #fbbc04;
  --warning-light: #fff8e1;
  --danger-color: #ea4335;
  --danger-light: #ffebee;
  --purple-color: #9c27b0;
  --purple-light: #f3e5f5;
  --orange-color: #ff6d00;
  --orange-light: #fff3e0;
  --cyan-color: #00bcd4;
  --cyan-light: #e0f7fa;
  
  /* Neutral Colors */
  --background-color: #f8f9fa;
  --background-dark: #f1f3f4;
  --surface-color: #ffffff;
  --text-primary-color: #202124;
  --text-secondary-color: #5f6368;
  --text-muted-color: #80868b;
  --border-color: #dadce0;
  --border-light-color: #e8eaed;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(60, 64, 67, 0.08);
  --shadow-md: 0 2px 8px rgba(60, 64, 67, 0.12);
  --shadow-lg: 0 4px 16px rgba(60, 64, 67, 0.15);
  --shadow-xl: 0 8px 32px rgba(60, 64, 67, 0.2);
  --shadow-hover: 0 4px 16px rgba(60, 64, 67, 0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  
  /* Spacing */
  --sidebar-width: 280px;
  --header-height: 80px;
}

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary-color);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark-color);
}

/* --- Utility Classes --- */
.hidden {
  display: none !important;
}

/* --- Dashboard Layout --- */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary-color);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: var(--background-color);
  color: var(--text-primary-color);
}

.nav-item.active {
  background: var(--primary-light-color);
  color: var(--primary-color);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 12px;
  color: var(--text-muted-color);
}

.logout-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background-color: var(--danger-light);
  color: var(--danger-color);
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* --- Top Header --- */
.top-header {
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary-color);
  line-height: 1.2;
}

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

.header-right {
  display: flex;
  gap: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
}

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

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

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

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-create {
  padding: 12px 24px;
}

/* --- Dashboard Content --- */
.dashboard-content {
  padding: 32px;
  max-width: 1400px;
}

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

.stat-card {
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-blue {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
}

.stat-icon-green {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #388e3c;
}

.stat-icon-purple {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #7b1fa2;
}

.stat-icon-orange {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary-color);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary-color);
  margin-top: 2px;
}

/* --- Section Styles --- */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary-color);
  margin-bottom: 4px;
}

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

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

/* --- Quick Actions --- */
.quick-actions {
  margin-bottom: 32px;
}

.quick-actions .section-title {
  margin-bottom: 16px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.action-card {
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.action-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light-color);
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light-color) 0%, #e3f2fd 100%);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.action-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary-color);
  margin-bottom: 4px;
}

.action-info p {
  font-size: 13px;
  color: var(--text-secondary-color);
  margin-bottom: 16px;
}

.action-form {
  display: flex;
  gap: 12px;
}

.action-form .form-input {
  flex: 1;
}

/* --- Classes Section --- */
.classes-section {
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* --- Class Card --- */
.class-card {
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.class-card-header {
  height: 140px;
  background: linear-gradient(135deg, var(--card-color, #1a73e8) 0%, var(--card-color-dark, #1557b0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.class-card-title {
  color: white;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edit-course-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.edit-course-btn:hover {
  background: white;
  transform: scale(1.05);
}

.edit-course-btn svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary-color);
}

.class-card-body {
  padding: 20px;
}

.class-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.class-card-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary-color);
}

.class-card-info-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted-color);
}

.class-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light-color);
  background: var(--background-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-code-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.class-code-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.class-code {
  font-family: 'Inter', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--primary-light-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.copy-code-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.copy-code-btn:hover {
  background: var(--background-dark);
}

.copy-code-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary-color);
}

/* --- Add Class Card --- */
.add-class-card {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  min-height: 320px;
}

.add-class-card:hover {
  border-color: var(--primary-color);
  background: var(--primary-light-color);
}

.add-class-card svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted-color);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.add-class-card:hover svg {
  color: var(--primary-color);
  transform: scale(1.1);
}

.add-class-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary-color);
  text-align: center;
}

.add-class-card:hover span {
  color: var(--primary-color);
}

/* --- Year Selector --- */
.year-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.year-selector label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary-color);
}

.form-select {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-color);
  color: var(--text-primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select:hover {
  border-color: var(--text-secondary-color);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light-color);
}

/* --- Loading State --- */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--text-secondary-color);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Empty State --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--text-muted-color);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary-color);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary-color);
  margin-bottom: 24px;
  max-width: 400px;
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background: var(--surface-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 32px 32px 24px;
  text-align: center;
  position: relative;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-icon-blue {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
}

.modal-icon-purple {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #7b1fa2;
}

.modal-icon-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #388e3c;
}

.modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary-color);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary-color);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--background-color);
  color: var(--text-primary-color);
}

.modal-body {
  padding: 0 32px 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 20px 32px 32px;
  background: var(--background-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-light-color);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary-color);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-color);
  color: var(--text-primary-color);
  transition: all 0.2s ease;
}

.form-input:hover {
  border-color: var(--text-secondary-color);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light-color);
}

.form-input::placeholder {
  color: var(--text-muted-color);
}

/* --- Color Picker --- */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light-color), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Class Code Display --- */
.class-code-display {
  background: linear-gradient(135deg, var(--primary-light-color) 0%, #e3f2fd 100%);
  border: 2px dashed var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  cursor: pointer;
  text-align: center;
  font-family: 'Inter', monospace;
  transition: all 0.2s ease;
  user-select: all;
}

.class-code-display:hover {
  background: var(--primary-light-color);
  border-color: var(--primary-dark-color);
}

.copy-feedback {
  font-size: 12px;
  color: var(--text-secondary-color);
  text-align: center;
  margin-top: 12px;
  height: 16px;
}

/* --- Login Page --- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
}

.login-container {
  width: 100%;
  max-width: 440px;
  background: var(--surface-color);
  padding: 48px 40px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

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

.login-logo {
  margin-bottom: 24px;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

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

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light-color);
}

.login-footer p {
  font-size: 13px;
  color: var(--text-muted-color);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
  }
  
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 20px 16px;
  }
  
  .top-header {
    padding: 20px 16px;
  }
  
  .page-title {
    font-size: 22px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .classes-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-create {
    width: 100%;
    justify-content: center;
  }
  
  .modal-container {
    max-height: 95vh;
  }
  
  .login-container {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: 16px;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .class-card-header {
    height: 120px;
  }
  
  .class-card-title {
    font-size: 18px;
  }
  
  .action-form {
    flex-direction: column;
  }
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.4s ease;
}

/* --- Focus States for Accessibility --- */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.color-swatch:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* --- Print Styles --- */
@media print {
  .sidebar,
  .top-header,
  .quick-actions,
  .btn,
  .modal {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .classes-grid {
    display: block;
  }
  
  .class-card {
    break-inside: avoid;
    margin-bottom: 16px;
  }
}
