/* Premium Light Glassmorphic Design System */
:root {
  /* HSL Color Palette - Soft Light Mode */
  --bg-primary: hsl(210, 40%, 98%); /* Soft light slate background */
  --bg-secondary: hsl(210, 30%, 95%); /* Muted secondary background */
  --bg-glass: rgba(255, 255, 255, 0.7); /* Translucent pure white */
  --border-glass: rgba(226, 232, 240, 0.7); /* Light slate border */
  
  --text-main: hsl(222, 47%, 12%); /* Deep slate text */
  --text-muted: hsl(215, 16%, 47%); /* Muted slate text */
  --text-dark: hsl(222, 47%, 12%);
  
  --color-accent: hsl(245, 75%, 60%); /* Indigo accent */
  --color-accent-hover: hsl(245, 80%, 55%);
  --color-accent-glow: rgba(99, 102, 241, 0.15);
  
  --color-success: hsl(150, 65%, 35%); /* Deep emerald for contrast */
  --color-success-bg: rgba(16, 185, 129, 0.1);
  
  --color-warning: hsl(38, 92%, 40%); /* Rich amber */
  --color-warning-bg: rgba(245, 158, 11, 0.1);

  --color-danger: hsl(343, 80%, 50%); /* Rose/Crimson */
  --color-danger-bg: rgba(244, 63, 94, 0.1);
  
  --color-info: hsl(190, 85%, 38%); /* Cyan */
  --color-info-bg: rgba(6, 182, 212, 0.1);
  
  --color-late: hsl(270, 65%, 50%); /* Violet */
  --color-late-bg: rgba(139, 92, 246, 0.1);

  --color-early: hsl(325, 65%, 50%); /* Pink */
  --color-early-bg: rgba(236, 72, 153, 0.1);
  
  --font-sans: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Ambient Glows (Muted pastel blobs for Light Mode) */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--color-info) 0%, transparent 70%);
}

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

/* Sidebar Layout & Styling (Premium Light Gray) */
.sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100vh;
  z-index: 10;
  transition: var(--transition-smooth);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.brand-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-info) 100%);
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.sidebar-brand h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.menu-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.menu-item i {
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.menu-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}

.menu-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%);
  color: var(--color-accent);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  padding-left: calc(1.25rem - 3px);
}

.menu-item.active i {
  color: var(--color-accent);
  transform: scale(1.1);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-icon {
  font-size: 2rem;
  color: var(--color-accent);
}

.profile-info {
  display: flex;
  flex-direction: column;
  max-width: 170px;
}

.profile-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-email {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  margin-left: 280px;
  padding: 2.5rem 3rem;
  min-height: 100vh;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.top-bar h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.current-date-badge {
  background: #fff;
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Views Management */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
}

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

/* Glassmorphic Cards (Light theme) */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Grids Layout */
.grid-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.grid-layout-admin {
  grid-template-columns: 1fr 1.5fr;
}

/* Inputs & Form Elements */
.form-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

textarea {
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: var(--transition-smooth);
}

textarea:focus, .form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
  background: #fff;
}

.form-input {
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.date-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-input-date {
  font-family: var(--font-sans);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
  padding: 0.4rem 0.75rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Attendance Column styling */
.schedule-day-badge {
  background: var(--color-accent-glow);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.attendance-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.attendance-table-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.attendance-list-body {
  max-height: 400px;
  overflow-y: auto;
}

.attendance-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.attendance-row:last-child {
  border-bottom: none;
}

.attendance-row:hover {
  background: rgba(0, 0, 0, 0.015);
}

.attendance-member-info {
  display: flex;
  flex-direction: column;
}

.attendance-member-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.attendance-member-schedule-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Premium Attendance Custom Picker Badge */
.attendance-status-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.status-badge-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #cbd5e1;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.status-badge-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Present Active */
.status-badge-btn[data-status="出席"].active {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* Absent with notice Active */
.status-badge-btn[data-status="欠席（連絡あり）"].active {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: var(--color-warning);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Absent without notice Active */
.status-badge-btn[data-status="欠席（連絡なし）"].active {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--color-danger);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.15);
}

/* Late Active */
.status-badge-btn[data-status="遅刻"].active {
  background: var(--color-late-bg);
  color: var(--color-late);
  border-color: var(--color-late);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

/* Early leave Active */
.status-badge-btn[data-status="早退"].active {
  background: var(--color-early-bg);
  color: var(--color-early);
  border-color: var(--color-early);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.attendance-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-info) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-info) 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--text-main);
}

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

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-danger-link {
  color: var(--color-danger);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.btn-danger-link:hover {
  text-decoration: underline;
  color: hsl(343, 90%, 45%);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.overwrite-warning {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.overwrite-warning i {
  color: var(--color-info);
}

/* Premium Table Designs */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.5);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.premium-table th {
  background: rgba(0, 0, 0, 0.02);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.premium-table tbody tr {
  transition: var(--transition-smooth);
}

.premium-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.01);
}

/* Status colors in listing */
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.present {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.status-pill.absent-notice {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.status-pill.absent-no-notice {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.status-pill.late {
  background: var(--color-late-bg);
  color: var(--color-late);
}

.status-pill.early {
  background: var(--color-early-bg);
  color: var(--color-early);
}

.status-badge-static {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border-glass);
}

.status-badge-static.active {
  color: var(--color-success);
  background: var(--color-success-bg);
  border-color: var(--color-success);
}

.status-badge-static.inactive {
  color: var(--text-muted);
  background: rgba(0,0,0,0.01);
  border-color: var(--border-glass);
}

/* Weekday scheduling Matrix table specific */
.matrix-table {
  text-align: center;
}

.matrix-table th, .matrix-table td {
  text-align: center;
}

.matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
}

/* Matrix Checkbox styling */
.checkbox-container {
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-size: 1.25rem;
  user-select: none;
  width: 24px;
  height: 24px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkbox-checkmark {
  background-color: #f1f5f9;
}

.checkbox-container input:checked ~ .checkbox-checkmark {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px var(--color-accent-glow);
}

.checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkbox-checkmark:after {
  display: block;
}

.checkbox-container .checkbox-checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-tab-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.admin-tab-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.admin-subview {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}

.admin-subview.active {
  display: block;
}

/* Modals & Dialog System (Light Overlay & White Box) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 780px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content.modal-sm {
  max-width: 450px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-info-bar {
  display: flex;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.info-item strong {
  color: var(--text-main);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.modal-detail-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-info);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-content {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: pre-wrap;
  min-height: 100px;
}

.modal-detail-attendance h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-attendance-list {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
}

.modal-attendance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.modal-attendance-item span:first-child {
  font-weight: 500;
  font-size: 0.9rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.25rem;
}

/* Toast Notifications system */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 200;
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 1rem 1.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: translateX(120%);
  animation: slideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  max-width: 350px;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.success i {
  color: var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-danger);
}

.toast.error i {
  color: var(--color-danger);
}

/* Search Box Styling */
.search-filter-wrapper {
  position: relative;
  width: 300px;
}

.search-filter-wrapper input {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-filter-wrapper input:focus {
  border-color: var(--color-accent);
  background: #fff;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Empty states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state p {
  font-size: 0.9rem;
}

/* Form block controls */
.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

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

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.5rem;
  }
  .sidebar-brand {
    margin-bottom: 1.5rem;
  }
  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-footer {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }
}
