@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap');

/* gym Shared Styles */

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

:root {
  /* Brand Palette */
  --gt-emerald-400: #34d399;
  --gt-emerald-500: #10b981;
  --gt-emerald-600: #059669;
  --gt-red-500: #ef4444;
  --gt-red-600: #dc2626;
  --gt-indigo-500: #5b67e7;
  --gt-violet-600: #6a3fb0;
  --gt-blue-400: #60a5fa;
  --gt-blue-500: #3b82f6;
  --gt-blue-600: #2563eb;
  --gt-amber-500: #f59e0b;
  --gt-amber-600: #d97706;
  --gt-slate-900: #0f172a;
  --gt-gray-50: #f8f9fa;
  --gt-gray-100: #f1f5f9;
  --gt-gray-200: #e2e8f0;
  --gt-gray-300: #dee2e6;
  --gt-gray-600: #495057;

  /* Radii & Shadows */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-emerald: 0 4px 12px rgba(16, 185, 129, 0.4);
  --shadow-red: 0 6px 16px rgba(220, 38, 38, 0.35);

  /* Focus Ring */
  --ring-emerald: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header/Footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1f5130 0%, #2c7a4f 45%, #59b37a 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.brand:hover {
  transform: scale(1.05);
}

.brand-logo-img {
  height: 84px;
  width: 84px;
  padding: 0;
  margin-right: 0;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  object-fit: cover;
}

.brand-title {
  font-family: 'IM Fell English SC', 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: #ffe5c4;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
  align-items: flex-start;
}

.brand-title span {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.625rem 1.125rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: none;
  overflow: hidden;
}
.dropdown-menu.open { display: block; }
.dropdown-item { display: block; padding: 10px 14px; text-decoration: none; color: inherit; }
.dropdown-item:hover { background: #ecfdf5; color: #065f46; }
/* simple line separator inside dropdowns */
.dropdown-separator { border-top: 1px solid #e2e8f0; margin: 6px 0; }

.site-footer {
  margin-top: auto;
  padding: 16px;
  background: #0f172a;
  color: #cbd5e1;
  border-top: 2px solid #10b981;
}
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.footer-inner .dot { opacity: 0.6; }
.footer-link {
  color: #10b981;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #34d399;
  text-decoration: underline;
}
.cookie-settings-btn {
  color: #10b981 !important;
}
.cookie-settings-btn:hover {
  color: #34d399 !important;
  text-decoration: underline;
}

/* Typography - Uniformed Headers & Paragraphs */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

/* Main Headers - Page Titles */
h1 { 
  font-size: 2rem; 
  color: #1f2937;
  margin-bottom: 1rem;
}

/* Section Headers */
h2 { 
  font-size: 1.5rem; 
  color: #374151;
  margin-bottom: 0.75rem;
}

/* Content Titles */
h3 { 
  font-size: 1.25rem; 
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Detail Titles */
h4 { 
  font-size: 1.125rem; 
  color: #4b5563;
  margin-bottom: 0.5rem;
}

h5 { font-size: 1rem; color: #4b5563; }
h6 { font-size: 0.875rem; color: #6b7280; }

/* Paragraph Styles */
p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

/* Text Utility Classes */
.text-large { font-size: 1.125rem; }
.text-small { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.text-muted { color: #6b7280; }
.text-secondary { color: #64748b; }
.text-primary { color: #374151; }

.text-success { color: #059669; }
.text-danger { color: #dc2626; }
.text-warning { color: #d97706; }

/* Layout Components */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

main, .main-content {
  flex: 1;
  padding: 20px 0;
}

/* Unified Dashboard Layout (used by trainer & user pages) */
.trainer-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.trainer-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Optional fluid variant for full-width dashboards */
.layout-fluid {
  max-width: 100% !important;
  width: 100%;
}

/* Standard two-column grid for trainer pages with sidebar */
.page-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .page-grid { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gt-emerald-400) 0%, var(--gt-emerald-500) 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gt-emerald-500) 0%, var(--gt-emerald-600) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-emerald);
}

/* Increase contrast for small text on gradient buttons/cards */
.btn-primary, .btn-success, .btn-logout, .nav-card.primary, .stats-grid .stat-card {
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.btn-secondary {
  background: var(--gt-gray-50);
  color: var(--gt-gray-600);
  border: 1px solid var(--gt-gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #adb5bd;
}

.btn-logout {
  background: #dc3545;
  color: white;
}

.btn-logout:hover:not(:disabled) {
  background: #c82333;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #218838;
}

/* Sizes and helpers */
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { display: block; width: 100%; }
.btn-with-icon { display: inline-flex; align-items: center; gap: 8px; }
.btn-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

/* Outline and ghost variants */
.btn-outline-emerald {
  background: transparent;
  color: var(--gt-emerald-600);
  border: 2px solid var(--gt-emerald-500);
}
.btn-outline-emerald:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gt-emerald-500) 0%, var(--gt-emerald-600) 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
  color: #495057;
  border: 1px solid transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: #f8f9fa;
  color: #212529;
}

/* Focus visibility & reduced motion accessibility */
.btn:focus-visible { outline: none; box-shadow: var(--ring-emerald); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Danger variant (shared) */
.btn-danger {
  background: linear-gradient(135deg, var(--gt-red-500) 0%, var(--gt-red-600) 100%);
  color: white;
}
.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Modern select style (aligned with trainer/calendar) */
.modern-select {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.modern-select:hover { border-color: #cbd5e1; }
.modern-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.primary-select {
  border-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}
.primary-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.modern-label { display: block; width: 100%; }
.modern-label .label-text {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Popup select (trainer/schede) aligned to modern-select */
.popup-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.popup-select:hover { border-color: #cbd5e1; }
.popup-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Inline form rows: label left, input right */
.form-group.inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-group.inline label {
  margin: 0; /* no bottom margin in inline */
  min-width: 140px;
}
.form-group.inline input,
.form-group.inline select,
.form-group.inline textarea {
  width: auto;
  flex: 1;
}

@media (max-width: 520px) {
  .form-group.inline { flex-direction: column; align-items: stretch; }
  .form-group.inline label { min-width: 0; margin-bottom: 0.5rem; }
  .form-group.inline input,
  .form-group.inline select,
  .form-group.inline textarea { width: 100%; }
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gt-gray-200);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

/* Aliases for page-specific classnames (centralized) */
.profile-card { /* alias of .card */
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gt-gray-200);
}

.card-header-profile { /* alias of .card-header */
  background: var(--gt-gray-50);
  padding: 16px 20px;
  border-bottom: 1px solid var(--gt-gray-200);
}

.plans-section { /* alias of panel */
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--gt-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-header { /* alias of panel-header */
  background: linear-gradient(135deg, var(--gt-gray-50) 0%, var(--gt-gray-100) 100%);
  color: #374151;
  padding: 24px;
  border-bottom: 2px solid var(--gt-gray-200);
  position: relative;
}

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

.card-header {
  border-bottom: 1px solid var(--gt-gray-200);
  margin: -24px -24px 24px -24px;
  padding: 16px 24px;
  background: var(--gt-gray-50);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-header h3 {
  margin: 0;
}

/* Stats Cards - Compact Version */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.stat-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}

.stat-info h3 {
  margin: 0 0 2px 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #667eea;
}

.stat-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Navigation Cards */
.nav-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.nav-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gt-gray-200);
  display: block;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}

.nav-card.primary {
  background: linear-gradient(135deg, var(--gt-indigo-500) 0%, var(--gt-violet-600) 100%);
  color: #ffffff;
}

.nav-card .nav-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.nav-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.nav-card p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.9rem;
  color: inherit;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Messages */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  margin: 10px 0;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
  margin: 10px 0;
}

.info-message {
  background: #d1ecf1;
  color: #0c5460;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #bee5eb;
  margin: 10px 0;
}

.warning-message {
  background: #fff3cd;
  color: #856404;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ffeaa7;
  margin: 10px 0;
}

/* Empty states (centralized) */
.empty-state { text-align: center; padding: 32px 20px; color: #6b7280; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gt-gray-200);
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--gt-gray-300);
}

.table th {
  background: var(--gt-gray-50);
  font-weight: 600;
  color: var(--gt-gray-600);
  border-bottom: 2px solid var(--gt-gray-200);
}

.table tr:hover {
  background: var(--gt-gray-50);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    flex-direction: row;
    text-align: left;
    padding: 10px 12px;
    min-height: 50px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden { display: none; }
.visible { display: block; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Small button utility */
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 4px; }

/* Modal (shared) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}
.modal-close {
  position: absolute; top: 15px; right: 20px;
  background: none; border: none; font-size: 24px; cursor: pointer; color: #6c757d;
  padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: #333; }
@keyframes fadeIn { from { opacity: 0;} to { opacity: 1;} }
@keyframes slideIn { from { opacity:0; transform: translateY(-50px);} to { opacity:1; transform: translateY(0);} }

/* --- Compatibility bridge for legacy "modern" buttons (trainer/schede) --- */
.modern-btn { /* align to .btn */
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

/* Panel system (applies site‑wide to existing panel-like containers) */
.panel,
.client-selector-panel,
.sidebar,
.profile-section,
.calendar-section,
.plans,
.session-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--gt-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel-header,
.sidebar-header,
.profile-header,
.calendar-header,
.plans-header,
.session-header {
  background: linear-gradient(135deg, var(--gt-gray-50) 0%, var(--gt-gray-100) 100%);
  padding: 16px 20px;
  border-bottom: 2px solid var(--gt-gray-200);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.panel-title,
.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Tabs (used in profilo utente/trainer, reusable site‑wide) */
.tabs,
.profile-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--gt-gray-50);
  border-radius: var(--radius-md);
  padding: 4px;
}

.tab,
.profile-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--gt-gray-600);
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.tab:hover,
.profile-tab:hover { background: var(--gt-gray-100); }

.tab.active,
.profile-tab.active {
  background: linear-gradient(135deg, var(--gt-blue-400) 0%, var(--gt-blue-500) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tab:focus-visible,
.profile-tab:focus-visible { outline: none; box-shadow: var(--ring-emerald); }

.btn-primary-modern { /* align to .btn-primary */
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: white;
}
.btn-primary-modern:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-secondary-modern { /* align to .btn-secondary */
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}
.btn-secondary-modern:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #adb5bd;
}

.btn-danger-modern { /* align to .btn-danger */
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}
.btn-danger-modern:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.btn-success-modern { /* align to .btn-success */
  background: #28a745;
  color: white;
}
.btn-success-modern:hover:not(:disabled) {
  background: #218838;
}

.btn-small, .btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 4px; }

/* ---- Page Action Layout Helpers ---- */
.actions-section {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-icon { font-size: 1.2rem; }

/* Colored button variants (centralized) */
.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
}

.btn-blue {
  background: linear-gradient(135deg, var(--gt-blue-400) 0%, var(--gt-blue-500) 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}
.btn-blue:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gt-blue-500) 0%, var(--gt-blue-600) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}
.btn-amber:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
  .actions-section { flex-direction: column; }
}

/* --- Semantic button aliases for consistency site‑wide --- */
.btn-save { /* positive actions like save/confirm */
  background: #28a745;
  color: #fff;
}
.btn-save:hover:not(:disabled) { background: #218838; }

.btn-cancel { /* neutral/cancel actions */
  background: linear-gradient(135deg, var(--gt-amber-500) 0%, var(--gt-amber-600) 100%);
  color: #fff;
}
.btn-cancel:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gt-amber-600) 0%, #b45309 100%);
  transform: translateY(-1px);
}

.btn-delete { /* destructive */
  background: linear-gradient(135deg, var(--gt-red-500) 0%, var(--gt-red-600) 100%);
  color: #fff;
}
.btn-delete:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gt-red-600) 0%, #b91c1c 100%);
  transform: translateY(-1px);
}

.btn-add { /* add/open popup usually with a plus */
  background: linear-gradient(135deg, var(--gt-emerald-400) 0%, var(--gt-emerald-500) 100%);
  color: #fff;
}
.btn-add:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gt-emerald-500) 0%, var(--gt-emerald-600) 100%);
  transform: translateY(-1px);
}
