/*
 * This is a manifest file that'll be compiled into application.css.
 */

/* CSS Custom Properties for consistent theming */
:root {
  /* Primary Colors */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;
  
  /* Secondary Colors */
  --secondary-slate: #475569;
  --secondary-slate-dark: #334155;
  --secondary-slate-light: #64748b;
  
  /* Success/Error States */
  --success-green: #059669;
  --success-green-dark: #047857;
  --success-green-light: #10b981;
  --error-red: #dc2626;
  --error-red-dark: #b91c1c;
  --error-red-light: #ef4444;
  --warning-amber: #d97706;
  --warning-amber-dark: #b45309;
  --warning-amber-light: #f59e0b;
  
  /* Neutral Colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.25rem;
  --spacing-2xl: 1.5rem;
  --spacing-3xl: 2rem;
  --spacing-4xl: 2.5rem;
  --spacing-5xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  min-height: 100vh;
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--spacing-3xl) var(--spacing-xl);
  min-height: calc(100vh - 80px);
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--school-primary, --gray-900) 0%, var(--school-primary-darkened, --gray-800) 100%);
  color: white;
  padding: var(--spacing-lg) 0;
  box-shadow: var(--shadow-lg);
  border-bottom: 2px solid var(--school-secondary, --primary-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.navbar-logo {
  height: 100px;
  width: auto;
  margin-right: var(--spacing-md);
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.navbar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

.navbar-nav {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--gray-300);
  text-decoration: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: var(--font-size-sm);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-link:active {
  transform: translateY(0);
}

.navbar-text {
  color: var(--gray-400);
  margin-right: var(--spacing-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
}
/* Dropdown Navigation Extension */

/* Container for the nav item containing a dropdown */
.nav-item.dropdown {
  position: relative;
}

/* The dropdown trigger button/link */
.nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.nav-link.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: var(--spacing-xs);
  vertical-align: middle;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 0.2s ease;
}

/* Dropdown Menu Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none; /* Hidden by default */
  min-width: 12rem;
  padding: var(--spacing-xs) 0;
  margin-top: 0;
  background-color: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  list-style: none;
}

/* Show dropdown on hover (Pure CSS option) */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
  transform: rotate(180deg);
}
.nav-item.dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px; /* Bridge height extending into the dropdown */
  display: block;
}
/* Individual Dropdown Items */
.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  clear: both;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-300);
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
}

/* Divider inside dropdown if needed */
.dropdown-divider {
  height: 0;
  margin: var(--spacing-xs) 0;
  overflow: hidden;
  border-top: 1px solid var(--gray-800);
}

/* Keyframe for subtle appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.navbar-school-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligns both elements to the left edge */
}

.navbar-school-info .navbar-brand {
  /* Keeps the brand link block-level inside the flex container */
  line-height: 1.2; 
}

.navbar-school-info .navbar-team-name {
  font-size: var(--font-size-sm); /* Or a smaller utility size */
  color: var(--gray-400);        /* Subtle secondary text color */
  line-height: 1.2;
}
/* Flash messages */
.flash-messages {
  margin-bottom: var(--spacing-2xl);
  position: relative;
}

.alert {
  padding: var(--spacing-lg) var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

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

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  color: var(--success-green-dark);
  border-color: var(--success-green-light);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  color: var(--error-red-dark);
  border-color: var(--error-red-light);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
  color: var(--warning-amber);
  border-color: var(--warning-amber-light);
}

.alert-close {
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  padding: var(--spacing-xs);
  margin-left: var(--spacing-lg);
  color: currentColor;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  border-radius: var(--radius-sm);
}

.alert-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-2xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.card-header {
  padding: var(--spacing-2xl);
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  border-bottom: 2px solid var(--gray-100);
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--gray-800);
  position: relative;
}

.card-header h3 {
  margin: 0;
  color: var(--gray-800);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.card-header h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.card-body,
.card-content {
  padding: var(--spacing-2xl);
  position: relative;
}

.card-footer {
  padding: var(--spacing-xl) var(--spacing-2xl);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover:before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:focus {
  outline: none;
  box-shadow: var(--shadow-sm), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  border-color: var(--primary-blue-dark);
  color: white;
}

input[type="submit"] {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  border-color: var(--primary-blue);
}

input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  border-color: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-light) 100%);
  color: white;
  border-color: var(--success-green);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-green-dark) 0%, var(--success-green) 100%);
  border-color: var(--success-green-dark);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-red) 0%, var(--error-red-light) 100%);
  color: white;
  border-color: var(--error-red);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--error-red-dark) 0%, var(--error-red) 100%);
  border-color: var(--error-red-dark);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #6366f1;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  border-color: #4f46e5;
  color: #ffffff;
}

.btn-outline {
  background: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

.btn-outline-primary {
  background: white;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

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

.btn-outline-success {
  background: white;
  color: var(--success-green);
  border-color: var(--success-green);
}

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

.btn-outline-danger {
  background: white;
  color: var(--error-red);
  border-color: var(--error-red);
}

.btn-outline-danger:hover {
  background: var(--error-red);
  color: white;
}

.btn-outline-secondary {
  background: white;
  color: var(--gray-800);
  border-color: var(--gray-800);
}

.btn-outline-secondary:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
  color: white;
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-xs);
  min-height: 36px;
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-3xl);
  font-size: var(--font-size-lg);
  min-height: 52px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-2xl);
  border: 1px solid var(--gray-200);
}

.table th,
.table td {
  padding: var(--spacing-lg);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: var(--font-size-sm);
  vertical-align: middle;
}

.table th {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  font-weight: 700;
  color: var(--gray-800);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  transform: scale(1.01);
}

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

/* Forms */
.form-group {
  margin-bottom: var(--spacing-2xl);
  position: relative;
}

.form-group label,
.form-label {
  display: block;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
  text-transform: none;
  letter-spacing: 0;
}

.form-label.required::after {
  content: ' *';
  color: var(--error-red);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-xl);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  background-color: white;
  font-family: inherit;
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.form-control:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
textarea:hover,
select:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow-md);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  margin-top: var(--spacing-sm);
  display: block;
}

.form-fieldset {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.form-fieldset legend {
  font-weight: 700;
  color: var(--gray-800);
  font-size: var(--font-size-lg);
  padding: 0 var(--spacing-lg);
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-actions {
  display: flex;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-2xl);
  border-top: 2px solid var(--gray-200);
  margin-top: var(--spacing-2xl);
  align-items: center;
  flex-wrap: wrap;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.form-check-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0;
}

.form-check-description {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: 400;
  margin-top: var(--spacing-xs);
}

/* Role checkboxes grid */
.role-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.role-checkboxes .form-check {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
  position: relative;
}

.role-checkboxes .form-check:hover {
  border-color: var(--primary-blue);
  background: var(--blue-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.role-checkboxes .form-check-input:checked + .form-check-label {
  color: var(--primary-blue);
}

.role-checkboxes .form-check:has(.form-check-input:checked) {
  border-color: var(--primary-blue);
  background: var(--blue-50);
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--spacing-lg));
  gap: 0;
}

.col {
  flex: 1;
  padding: 0 var(--spacing-lg);
  min-width: 0;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 var(--spacing-lg);
}

.col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 var(--spacing-lg);
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 var(--spacing-lg);
}

.col-md-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
  padding: 0 var(--spacing-lg);
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-end {
  justify-content: flex-end;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

.gap-xl {
  gap: var(--spacing-xl);
}

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.mb-6 { margin-bottom: var(--spacing-2xl); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mt-6 { margin-top: var(--spacing-2xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }
.p-6 { padding: var(--spacing-2xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted {
  color: var(--gray-500);
}

.text-primary {
  color: var(--primary-blue);
}

.text-success {
  color: var(--success-green);
}

.text-danger {
  color: var(--error-red);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--spacing-lg) 0;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

.lead {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
  main {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .card-header,
  .card-body,
  .card-content {
    padding: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xs: 0.125rem;
    --spacing-sm: 0.25rem;
    --spacing-md: 0.5rem;
    --spacing-lg: 0.75rem;
    --spacing-xl: 1rem;
    --spacing-2xl: 1.25rem;
    --spacing-3xl: 1.5rem;
  }
  
  body {
    font-size: var(--font-size-sm);
  }
  
  .navbar-content {
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
  }
  
  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: var(--spacing-xs);
  }
  
  .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-xs);
  }
  
  .col-md-6,
  .col-md-4,
  .col-md-3,
  .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 var(--spacing-sm);
  }
  
  .row {
    margin: 0 calc(-1 * var(--spacing-sm));
  }
  
  main {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  
  .card-header,
  .card-body,
  .card-content {
    padding: var(--spacing-lg);
  }
  
  .form-fieldset {
    padding: var(--spacing-lg);
  }
  
  .btn {
    min-height: 40px;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-xs);
  }
  
  .btn-sm {
    min-height: 32px;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  .table {
    font-size: var(--font-size-xs);
  }
  
  .table th,
  .table td {
    padding: var(--spacing-sm);
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: var(--font-size-xl);
  }
  
  .card {
    margin-bottom: var(--spacing-xl);
  }
  
  .card-header,
  .card-body,
  .card-content {
    padding: var(--spacing-md);
  }
  
  .alert {
    padding: var(--spacing-md);
  }
  
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Component Styles */

/* Attendance buttons */
.attendance-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.attendance-status {
  text-align: center;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.attendance-status small {
  display: block;
  margin-top: var(--spacing-xs);
  color: var(--gray-500);
  font-size: var(--font-size-xs);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-green-dark);
  border: 1px solid var(--success-green-light);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-red-dark);
  border: 1px solid var(--error-red-light);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-amber);
  border: 1px solid var(--warning-amber-light);
}

.badge-info {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue-light);
}

.badge-secondary {
  background-color: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

/* Stats cards */
.stat-card {
  background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

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

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Dashboard specific styles */
.dashboard-header {
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 2px solid var(--gray-200);
}

.profile-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* Quick actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.quick-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* Info grid for profile displays */
.info-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.info-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: var(--font-size-base);
  color: var(--gray-800);
  font-weight: 500;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

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

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

/* Page headers */
.page-header {
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 2px solid var(--gray-200);
}

.page-header h1 {
  margin-bottom: var(--spacing-md);
}

.page-header .lead {
  margin-bottom: 0;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

/* Empty states */
.empty-state {
  text-align: center;
  padding: var(--spacing-5xl) var(--spacing-2xl);
  color: var(--gray-500);
}

.empty-state h3 {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
}

/* Count badges */
.count-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--primary-blue);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-left: var(--spacing-sm);
}

/* Progress bars */
.progress {
  background: var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 8px;
}

.progress-bar {
  background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-light) 100%);
  height: 100%;
  transition: width 0.3s ease;
  border-radius: var(--radius-md);
}

.bg-success {
  background-color: var(--success-green);
  color: white;
}

.bg-danger {
  background-color: var(--error-red);
  color: white;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.d-inline {
  display: inline;
}

.text-center {
  text-align: center;
}

/* Table row colors */
.table-success {
  background-color: rgba(40, 167, 69, 0.1);
}

.table-danger {
  background-color: rgba(220, 53, 69, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.h4 {
  font-size: var(--font-size-2xl);
}

.card-title {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
}

.card-text {
  margin-bottom: 0;
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-blue-light);
  color: var(--primary-blue-dark);
}

.alert-heading {
  margin-bottom: var(--spacing-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--spacing-lg) 0;
}

/* Parent-Student Selection Styles */
.parent-section {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.parent-section h4 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.student-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #3498db;
  transition: all 0.3s ease;
}

.student-card:hover {
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.15);
}

.student-card:hover::before {
  width: 6px;
  background: #2980b9;
}

.student-card.selected {
  border-color: #27ae60;
  background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.2);
}

.student-card.selected::before {
  background: #27ae60;
  width: 6px;
}

.student-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  transform: scale(1.2);
  accent-color: #27ae60;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0;
}

.student-card input[type="checkbox"]:checked {
  opacity: 1;
}

.selection-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  background: #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.student-card:has(input[type="checkbox"]:checked) .selection-indicator,
.student-card.selected .selection-indicator {
  opacity: 1;
  transform: scale(1);
}

.selection-summary {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  margin-top: 1rem;
  color: #155724;
  font-weight: 600;
}

.student-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.student-info h4 {
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.student-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.4;
}

.student-details .grade,
.student-details .school {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.student-details .grade::before {
  content: '🎓';
  font-size: 0.8rem;
}

.student-details .school::before {
  content: '🏫';
  font-size: 0.8rem;
}

.student-actions .btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

/* Profile Form Enhancements */
.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
}

.profile-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-50);
}

.profile-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

.profile-form {
  padding: 2rem;
}

.form-section {
  margin-bottom: 2.5rem;
}

.section-title {
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #667eea;
}

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

.field-group {
  display: flex;
  flex-direction: column;
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-hint {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-bottom: var(--spacing-lg);
  line-height: 1.4;
}

/* Role selection styling */
.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-blue-light);
  border-color: var(--primary-blue-light);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue-light);
  color: white;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-green-light) 0%, var(--success-green) 100%);
  color: white;
  border-color: var(--success-green-light);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-dark) 100%);
  border-color: var(--success-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-amber-light) 0%, var(--warning-amber) 100%);
  color: white;
  border-color: var(--warning-amber-light);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--warning-amber) 0%, var(--warning-amber-dark) 100%);
  border-color: var(--warning-amber);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Disabled State */
.btn:disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Button Groups */
.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Link Buttons */
.btn-link {
  background: none;
  border: none;
  color: #3b82f6;
  text-decoration: underline;
  padding: 0.5rem 0;
}

.btn-link:hover {
  color: #2563eb;
  text-decoration: none;
}

.role-checkbox-item {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.role-checkbox-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.role-checkbox-item input[type="checkbox"] {
  margin-bottom: 0.75rem;
  transform: scale(1.3);
  accent-color: #667eea;
}

.role-checkbox-item label {
  display: block;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  color: #2c3e50;
  font-size: 1rem;
}

.role-checkbox-item input[type="checkbox"]:checked {
  accent-color: #27ae60;
}

.role-checkbox-item:has(input[type="checkbox"]:checked) {
  border-color: #27ae60;
  background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.15);
}

.btn-primary-profile {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  color: white;
}

.btn-secondary-profile {
  background: transparent;
  color: #6c757d;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-profile:hover {
  border-color: #6c757d;
  color: #495057;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-container {
    padding: 1rem;
  }
  
  .profile-form {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .students-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .role-checkboxes {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-primary-profile,
  .btn-secondary-profile {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .profile-header {
    padding: 1.5rem 1rem;
  }
  
  .profile-header h1 {
    font-size: 1.5rem;
    color: var(--gray-50);
  }
  
  .role-checkboxes {
    grid-template-columns: 1fr;
  }
  
  .student-card {
    padding: 1rem;
  }
  
  .selection-indicator {
    width: 20px;
    height: 20px;
  }
}

/* Global Checkbox and Radio Styling */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #3b82f6;
}

.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.checkbox-group label,
.radio-group label {
  display: flex;
  width: 100%;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
  color: #374151;
}

/* Form Validation */
.form-control.is-invalid,
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #ef4444;
}

.form-control.is-valid,
input.is-valid,
textarea.is-valid,
select.is-valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.valid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #10b981;
}

/* Select Element Custom Styling */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none;
}

/* File Input Styling */
input[type="file"] {
  padding: 0.5rem;
  border: 2px dashed #d1d5db;
  background-color: #f9fafb;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: #9ca3af;
  background-color: #f3f4f6;
}

input[type="file"]:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form Helper Text */
.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Required Field Indicator */
.required {
  color: #ef4444;
  font-weight: bold;
}

/* Form Section Headers */
.form-section-header {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-700);
  margin: var(--spacing-3xl) 0 var(--spacing-lg) 0;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--gray-200);
}

.alert-success {
  color: var(--success-green-dark);
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--success-green-light);
}

.alert-danger,
.alert-error {
  color: var(--error-red-dark);
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--error-red-light);
}

.alert-warning {
  color: var(--warning-amber);
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--warning-amber-light);
}

.alert-info {
  color: var(--primary-blue-dark);
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-blue-light);
}

/* ===== Extracted Template Styles ===== */

/* Extracted from app/views/announcements/edit.html.erb */
.form-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-fieldset legend {
  font-weight: 600;
  color: #374151;
  padding: 0 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-help {
  color: #6b7280;
  font-size: 0.875rem;
}

.text-info {
  color: #0ea5e9;
}

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

.checkbox-label {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  align-items: center;
}

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

.status-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.status-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-value {
  color: #111827;
}

.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-active {
  background-color: #dcfce7;
  color: #166534;
}

.badge-scheduled {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.badge-expired {
  background-color: #fee2e2;
  color: #dc2626;
}

.announcement-preview {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  background-color: #ffffff;
}

.announcement-header {
  margin-bottom: 15px;
}

.announcement-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.announcement-title {
  color: #111827;
  margin: 0;
  font-size: 1.5rem;
}

.priority-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-badge.low {
  background-color: #f3f4f6;
  color: #6b7280;
}

.priority-badge.normal {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.priority-badge.high {
  background-color: #fef3c7;
  color: #d97706;
}

.priority-badge.urgent {
  background-color: #fee2e2;
  color: #dc2626;
}

.pinned-badge {
  color: #d97706;
  font-weight: 600;
  font-size: 0.875rem;
}

.announcement-content {
  color: #374151;
  line-height: 1.6;
}

.announcement-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

.text-muted {
  color: #6b7280;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* Extracted from app/views/announcements/index.html.erb */
.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.announcement-card {
  background: var(--surface-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

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

.announcement-card.important {
  border-left: 4px solid var(--warning-500);
  background: linear-gradient(135deg, var(--surface-primary) 0%, var(--warning-50) 100%);
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.importance-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--warning-100);
  color: var(--warning-700);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.published-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.author-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.expiry-info {
  text-align: right;
}

.expiry-status {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.expiry-status.expired {
  background: var(--error-100);
  color: var(--error-700);
}

.expiry-status.urgent {
  background: var(--warning-100);
  color: var(--warning-700);
}

.expiry-status.soon {
  background: var(--primary-100);
  color: var(--primary-700);
}

.expiry-status.normal {
  background: var(--gray-100);
  color: var(--gray-700);
}

.announcement-content {
  margin-bottom: 1rem;
}

.announcement-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.announcement-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.announcement-title a:hover {
  color: var(--primary-600);
}

.announcement-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
}

.announcement-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.authors-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.author-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-sm);
}

.author-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.author-count {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-warning {
  background: var(--warning-500);
  color: var(--warning-50);
  border: 1px solid var(--warning-500);
}

.btn-warning:hover {
  background: var(--warning-600);
  border-color: var(--warning-600);
}

/* Extracted from app/views/announcements/new.html.erb */
.form-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-fieldset legend {
  font-weight: 600;
  color: #374151;
  padding: 0 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-help {
  color: #6b7280;
  font-size: 0.875rem;
}

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

.checkbox-label {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.announcement-preview {
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  background-color: #f9fafb;
}

.announcement-header {
  margin-bottom: 15px;
}

.announcement-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: #6b7280;
}

.announcement-title {
  color: #111827;
  margin: 0;
  font-size: 1.5rem;
}

.priority-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-badge.low {
  background-color: #f3f4f6;
  color: #6b7280;
}

.priority-badge.normal {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.priority-badge.high {
  background-color: #fef3c7;
  color: #d97706;
}

.priority-badge.urgent {
  background-color: #fee2e2;
  color: #dc2626;
}

.announcement-content {
  color: #374151;
  line-height: 1.6;
}

.guidelines-list {
  display: grid;
  gap: 15px;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
}

.guideline-icon {
  font-size: 1.25rem;
  margin-top: 2px;
}

.guideline-text {
  flex: 1;
  color: #374151;
  line-height: 1.5;
}

.guideline-text strong {
  color: #111827;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Extracted from app/views/announcements/show.html.erb */
:root {
  --primary-color: #2563eb;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

.announcement-detail {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.announcement-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-bottom: 1px solid var(--gray-200);
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.importance-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.importance-badge.urgent {
  background: var(--danger-color);
  color: white;
}

.audience-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--primary-color);
  color: white;
}

.audience-badge.audience-everyone { background: var(--gray-600); }
.audience-badge.audience-students { background: var(--primary-color); }
.audience-badge.audience-coaches { background: var(--success-color); }
.audience-badge.audience-parents { background: var(--warning-color); }
.audience-badge.audience-judges { background: #7c3aed; }
.audience-badge.audience-facilitators { background: #db2777; }

.published-date {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.announcement-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
}

.author-info {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.announcement-content {
  padding: 2rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.announcement-actions {
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
}

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

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
  transform: translateY(-1px);
}

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

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .announcement-detail {
    margin: 1rem;
    border-radius: 8px;
  }
  
  .announcement-header {
    padding: 1.5rem;
  }
  
  .announcement-header h1 {
    font-size: 1.5rem;
  }
  
  .announcement-content {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  .announcement-actions {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
  }
}

/* Extracted from app/views/devise/registrations/new.html.erb */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: #2d3748;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #718096;
  font-size: 1rem;
}

.field-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: " *";
  color: #e53e3e;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-hint {
  font-size: 0.875rem;
  color: #718096;
  margin-left: 0.5rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option:hover {
  border-color: #cbd5e0;
  background-color: #f7fafc;
}

.radio-option:has(input:checked) {
  border-color: #667eea;
  background-color: #eef2ff;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}

.radio-option:has(input:checked) .radio-custom {
  border-color: #667eea;
}

.radio-option:has(input:checked) .radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #667eea;
}

.radio-content strong {
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: block;
}

.radio-content p {
  color: #718096;
  font-size: 0.875rem;
  margin: 0;
}

.registration-info {
  background-color: #e6fffa;
  border: 1px solid #81e6d9;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.info-content {
  color: #234e52;
  font-size: 0.875rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #667eea;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #5a67d8;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
}

.btn-large {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
}

.form-actions {
  margin-bottom: 1.5rem;
}

.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.auth-footer a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Extracted from app/views/facilitators/select_students.html.erb */
.profile-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 2rem 1rem;
}

.profile-card {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

.profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.profile-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.profile-header p {
  font-size: 1rem;
  opacity: 0.9;
}

.profile-form {
  padding: 2rem;
}

.form-section {
  margin-bottom: 2rem;
}

.section-title {
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

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

.student-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.student-card:hover {
  border-color: #cbd5e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.student-card.selected {
  border-color: #667eea;
  background-color: #eef2ff;
}

.student-card input[type="checkbox"] {
  display: none;
}

.student-info {
  flex: 1;
}

.student-info h4 {
  color: #2d3748;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.student-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.grade, .school {
  background: #f7fafc;
  color: #4a5568;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.event-type {
  color: #718096;
  font-size: 0.875rem;
}

.selection-indicator {
  color: #667eea;
  opacity: 0;
  transition: opacity 0.2s;
  margin-left: 1rem;
}

.student-card.selected .selection-indicator {
  opacity: 1;
}

.selection-summary {
  text-align: center;
  padding: 1rem;
  background: #eef2ff;
  border-radius: 8px;
  color: #667eea;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #718096;
}

.empty-icon {
  color: #cbd5e0;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: #4a5568;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.empty-state p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.help-section {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.help-section h4 {
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.help-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.help-content li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #667eea;
  color: white;
}

.btn-primary:hover {
  background-color: #5a67d8;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background-color: #cbd5e0;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .profile-container {
    padding: 1rem 0.5rem;
  }
  
  .profile-form {
    padding: 1.5rem;
  }
  
  .students-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .student-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Extracted from app/views/facilitators/show.html.erb */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-grid {
  display: grid;
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  color: #111827;
  font-size: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
  margin: 0;
  flex: 1;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.role-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
}

.role-item.active {
  border-color: #10b981;
  background-color: #ecfdf5;
}

.role-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.role-name {
  font-weight: 600;
  color: #374151;
}

.role-status {
  font-size: 0.875rem;
  color: #6b7280;
}

.role-item.active .role-status {
  color: #10b981;
}

.students-list {
  display: grid;
  gap: 10px;
}

.student-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.student-card:hover {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.student-info {
  flex: 1;
}

.student-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.student-link:hover {
  text-decoration: underline;
}

.student-details {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.student-grade,
.student-school {
  font-size: 0.875rem;
  color: #6b7280;
  background-color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background-color: #f9fafb;
  border-radius: 8px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 4px;
}

/* Extracted from app/views/layouts/mailer.html.erb */
/* Email styles need to be inline */

/* Extracted from app/views/practices/edit.html.erb */
.form-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-fieldset legend {
  font-weight: 600;
  color: #374151;
  padding: 0 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-help {
  color: #6b7280;
  font-size: 0.875rem;
}

.text-warning {
  color: #f59e0b;
}

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

.checkbox-label {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  align-items: center;
}

.practice-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 4px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-outline {
  border: 1px solid #e5e7eb;
  color: #374151;
  background-color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

@media (max-width: 768px) {
  .practice-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Extracted from app/views/practices/index.html.erb */
.practice-card {
  background: var(--surface-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

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

.practice-card.cancelled {
  opacity: 0.7;
  background: var(--surface-secondary);
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.practice-date {
  text-align: center;
}

.date-primary {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
  line-height: 1.2;
}

.date-secondary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.practice-time {
  font-weight: 600;
  color: var(--text-primary);
}

.practice-details {
  margin-bottom: 1rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.practice-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.practice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-badge.cancelled {
  background: var(--error-100);
  color: var(--error-700);
}

.status-badge.completed {
  background: var(--success-100);
  color: var(--success-700);
}

.status-badge.today {
  background: var(--warning-100);
  color: var(--warning-700);
}

.status-badge.upcoming {
  background: var(--primary-100);
  color: var(--primary-700);
}

/* Extracted from app/views/practices/new.html.erb */
.form-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-fieldset legend {
  font-weight: 600;
  color: #374151;
  padding: 0 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radio-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-label {
  font-weight: 500;
  cursor: pointer;
}

.radio-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 24px;
}

.days-of-week {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.day-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.checkbox-label {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.guidelines-list {
  display: grid;
  gap: 15px;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
}

.guideline-icon {
  font-size: 1.25rem;
  margin-top: 2px;
}

.guideline-text {
  flex: 1;
  color: #374151;
  line-height: 1.5;
}

.guideline-text strong {
  color: #111827;
}

/* Extracted from app/views/practices/show.html.erb */
.practice-meta {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.attendance-stats {
  display: flex;
  gap: 1rem;
}

.stat {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.stat.present {
  background: var(--success-100);
  color: var(--success-700);
}

.stat.absent {
  background: var(--error-100);
  color: var(--error-700);
}

.stat.excused {
  background: var(--warning-100);
  color: var(--warning-700);
}

.attendance-grid {
  display: grid;
  gap: 1.5rem;
}

.attendance-status-header {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
}

.attendance-status-header.present {
  color: var(--success-600);
  border-color: var(--success-200);
}

.attendance-status-header.absent {
  color: var(--error-600);
  border-color: var(--error-200);
}

.attendance-status-header.excused {
  color: var(--warning-600);
  border-color: var(--warning-200);
}

.user-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
}

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.user-name {
  font-weight: 500;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.coaching-grid {
  display: grid;
  gap: 1.5rem;
}

.coaching-matrix-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding-bottom: 0.5rem;
}

.coaching-matrix-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.coaching-matrix-table th,
.coaching-matrix-table td {
  border: 1px solid var(--border-subtle);
  background: white;
  vertical-align: top;
}

.coaching-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-secondary);
  font-weight: 600;
}

.coaching-matrix-time-column {
  min-width: 160px;
  padding: 0.75rem;
  font-weight: 600;
  color: var(--primary-700);
}

.coaching-matrix-coach-column {
  min-width: 220px;
  padding: 0.75rem;
  color: var(--text-primary);
}

.coaching-matrix-cell {
  min-width: 220px;
  padding: 0.65rem;
}

.coaching-matrix-booked,
.coaching-matrix-available,
.coaching-matrix-empty {
  font-size: 0.875rem;
}

.coaching-matrix-booked {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.coaching-matrix-available {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.coaching-matrix-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 1rem 0.25rem;
}

.coaching-booking-details {
  margin-top: 0.4rem;
}

.coaching-booking-details summary {
  cursor: pointer;
  color: var(--primary-600);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.coaching-status-header {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
}

.slot-list {
  display: grid;
  gap: 1rem;
}

.coaching-slot {
  padding: 1rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-500);
}

.slot-time {
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

.slot-participants {
  margin-bottom: 0.5rem;
}

.participant {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.slot-notes {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.info-value {
  font-weight: 500;
  color: var(--text-primary);
}

.status-text {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-text.cancelled {
  background: var(--error-100);
  color: var(--error-700);
}

.status-text.completed {
  background: var(--success-100);
  color: var(--success-700);
}

.status-text.today {
  background: var(--warning-100);
  color: var(--warning-700);
}

.status-text.upcoming {
  background: var(--primary-100);
  color: var(--primary-700);
}

/* Extracted from app/views/shared/_form_errors.html.erb */
.error-container {
      background-color: #fed7d7;
      border: 1px solid #feb2b2;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 2rem;
    }

    .error-header h4 {
      color: #c53030;
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    .error-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .error-item {
      color: #742a2a;
      font-size: 0.875rem;
      margin-bottom: 0.5rem;
      padding-left: 1rem;
      position: relative;
    }

    .error-item::before {
      content: "•";
      color: #c53030;
      position: absolute;
      left: 0;
    }

    .error-item:last-child {
      margin-bottom: 0;
    }

/* Extracted from app/views/students/edit.html.erb */
.form-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-fieldset legend {
  font-weight: 600;
  color: #374151;
  padding: 0 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* Extracted from app/views/students/show.html.erb */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-grid {
  display: grid;
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  color: #111827;
  font-size: 1rem;
}

.card-header {
  display: flex;
  justify-content: between;
  align-items: center;
  padding: 1rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
  margin: 0;
  flex: 1;
}

/* Extracted from app/views/tournaments/edit.html.erb */
.form-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-fieldset legend {
  font-weight: 600;
  color: #374151;
  padding: 0 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-help {
  color: #6b7280;
  font-size: 0.875rem;
}

.text-success {
  color: #10b981;
}

.text-warning {
  color: #f59e0b;
}

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

.checkbox-label {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  align-items: center;
}

.tournament-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 4px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-outline {
  border: 1px solid #e5e7eb;
  color: #374151;
  background-color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

@media (max-width: 768px) {
  .tournament-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Extracted from app/views/tournaments/index.html.erb */
.tournament-grid {
  display: grid;
  gap: 1.5rem;
}

.tournament-card {
  background: var(--surface-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all 0.2s ease;
}

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

.tournament-card.past {
  opacity: 0.8;
  background: var(--surface-secondary);
}

.tournament-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tournament-date {
  text-align: center;
  flex-shrink: 0;
}

.date-month {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.date-day {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-700);
  line-height: 1;
}

.date-year {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tournament-info {
  flex: 1;
}

.tournament-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.tournament-name a {
  color: var(--text-primary);
  text-decoration: none;
}

.tournament-name a:hover {
  color: var(--primary-600);
}

.tournament-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tournament-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.tournament-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tournament-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.deadline-status {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.deadline-status.open {
  background: var(--success-100);
  color: var(--success-700);
}

.deadline-status.urgent {
  background: var(--warning-100);
  color: var(--warning-700);
}

.deadline-status.expired {
  background: var(--error-100);
  color: var(--error-700);
}

.tournament-actions {
  display: flex;
  gap: 0.5rem;
}

.tournament-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tournament-status.past {
  background: var(--gray-100);
  color: var(--gray-700);
}

.tournament-status.today {
  background: var(--warning-100);
  color: var(--warning-700);
}

.tournament-status.soon {
  background: var(--primary-100);
  color: var(--primary-700);
}

.deadline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deadline-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-sm);
}

.deadline-date {
  font-weight: 600;
  color: var(--primary-600);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.deadline-tournament {
  font-size: 0.875rem;
}

.deadline-tournament a {
  color: var(--text-primary);
  text-decoration: none;
}

.deadline-tournament a:hover {
  color: var(--primary-600);
}

/* Extracted from app/views/tournaments/new.html.erb */
.form-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-fieldset legend {
  font-weight: 600;
  color: #374151;
  padding: 0 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-help {
  color: #6b7280;
  font-size: 0.875rem;
}

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

.checkbox-label {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.guidelines-list {
  display: grid;
  gap: 15px;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
}

.guideline-icon {
  font-size: 1.25rem;
  margin-top: 2px;
}

.guideline-text {
  flex: 1;
  color: #374151;
  line-height: 1.5;
}

.guideline-text strong {
  color: #111827;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Extracted from app/views/users/index.html.erb */
:root {
  --primary-color: #2563eb;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

.page-header {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
}

.subtitle {
  color: var(--gray-600);
  margin: 0;
}

.header-actions .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-actions .btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.main-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-overview {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-overview h3 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
  font-size: 1.125rem;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.recent-activity h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 600;
}

.activity-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}

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

.activity-time {
  display: block;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.filter-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-section h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 600;
}

.filter-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-link {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.filter-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.filter-link.active {
  background: var(--primary-color);
  color: white;
}

.main-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-height: 600px;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.user-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.user-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.user-link {
  color: var(--gray-900);
  text-decoration: none;
}

.user-link:hover {
  color: var(--primary-color);
}

.role-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-badge.role-student {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
}

.role-badge.role-coach {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success-color);
}

.role-badge.role-parent {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning-color);
}

.role-badge.role-judge {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.role-badge.role-facilitator {
  background: rgba(219, 39, 119, 0.1);
  color: #db2777;
}

.user-details {
  margin: 1rem 0;
}

.detail-item {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.detail-item i {
  margin-right: 0.5rem;
  width: 16px;
}

.student-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.student-stats .stat-item {
  flex: 1;
  text-align: center;
  padding: 0;
  background: none;
}

.student-stats .stat-number {
  font-size: 1.25rem;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

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

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  color: var(--gray-600);
  margin: 0 0 2rem 0;
  max-width: 400px;
}

@media (max-width: 768px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .page-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .users-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .filter-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Extracted from app/views/users/show.html.erb */
:root {
  --primary-color: #2563eb;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

.user-profile {
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.profile-header {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.user-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
}

.user-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
}

.role-badge {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.role-badge.role-student {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
}

.role-badge.role-coach {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success-color);
}

.role-badge.role-parent {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning-color);
}

.role-badge.role-judge {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.role-badge.role-facilitator {
  background: rgba(219, 39, 119, 0.1);
  color: #db2777;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.contact-item i {
  width: 16px;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.main-profile {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section {
  margin-bottom: 2.5rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.attendance-list, .coaching-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.attendance-item, .coaching-item {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 4px solid var(--gray-300);
}

.attendance-item.present {
  border-left-color: var(--success-color);
  background: rgba(5, 150, 105, 0.05);
}

.practice-info, .session-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.time {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.attendance-status {
  display: flex;
  justify-content: flex-end;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.present {
  background: var(--success-color);
  color: white;
}

.status-badge.absent {
  background: var(--danger-color);
  color: white;
}

.session-notes {
  color: var(--gray-600);
  font-size: 0.875rem;
  font-style: italic;
}

.registrations-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tournament-registration {
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.tournament-header h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.tournament-header h4 a {
  color: var(--primary-color);
  text-decoration: none;
}

.tournament-header h4 a:hover {
  text-decoration: underline;
}

.tournament-meta {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.tournament-meta .date::after {
  content: " • ";
  margin: 0 0.5rem;
}

.events-registered {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.event-tag {
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-card, .actions-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-card h4, .actions-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 1rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

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

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}

.btn-block {
  width: 100%;
}

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

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

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

.btn-danger:hover {
  background: #b91c1c;
}

.no-data {
  color: var(--gray-500);
  font-style: italic;
  text-align: center;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.back-link {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .main-profile {
    padding: 1.5rem;
  }
  
  .practice-info, .session-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .contact-info {
    align-items: center;
  }
}

/* Inline-style migrations from ERB templates */
.home-index-cta {
  margin-top: 2rem;
}

.dashboard-item-card {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

.dashboard-attendance-present {
  color: green;
}

.dashboard-attendance-absent {
  color: red;
}

.dashboard-announcement-preview {
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 4px solid #3498db;
}

.dashboard-announcement-preview-urgent {
  border-left-color: #e74c3c;
}

.dashboard-announcement-preview-normal {
  border-left-color: #3498db;
}

.dashboard-announcement-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.dashboard-announcement-urgent {
  color: #e74c3c;
  font-size: 0.8rem;
}

.dashboard-announcement-content {
  margin: 0;
  font-size: 0.9rem;
}

.dashboard-announcement-meta {
  color: #666;
}

.registration-info-hidden,
.selection-summary-hidden,
.recurring-practice-fields-hidden {
  display: none;
}

.coach-attendance-icons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.coach-attendance-icon {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.coach-attendance-icon:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.coach-attendance-icon-present {
  color: var(--success-green);
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.coach-attendance-icon-absent {
  color: var(--error-red);
  background: #fef2f2;
  border-color: #fecaca;
}

.coach-attendance-icon.is-selected {
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
