/* Dashboard Styles */
/* Follows neumorphism design system and color palette */

/* Override body styles for dashboard */
body {
  margin: 0;
  padding: 0;
  background: #f9fafb !important;
  font-family: var(--font-secondary, 'Nunito', sans-serif);
}

.dashboard-wrapper {
  max-width: 120rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: #f9fafb;
  min-height: 100vh;
}

/* ========================================
   DASHBOARD HEADER
   ======================================== */

.dashboard-header {
  background: #f9fafb;
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.4),
    -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
}

.dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dashboard-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 1rem;
  color: var(--color-primary-blue);
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.35),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.75);
}

.dashboard-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0;
  line-height: 1.2;
}

.dashboard-date {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0.25rem 0 0 0;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dashboard-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f9fafb;
  border-radius: 2rem;
  box-shadow: 
    inset 0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    inset -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.stat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.stat-present .stat-dot {
  background: #10b981;
}

.stat-absent .stat-dot {
  background: #ef4444;
}

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

.dashboard-profile-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.4),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.dashboard-profile-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.5),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.9);
}

.profile-initials {
  font-family: var(--font-primary);
}

/* ========================================
   FILTER TABS
   ======================================== */

.dashboard-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.625rem 1.25rem;
  border: none;
  background: #f9fafb;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.35),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.75);
}

.filter-tab:hover {
  color: var(--color-primary-blue);
}

.filter-tab.active {
  color: white;
  background: var(--color-primary-blue);
  box-shadow: 
    inset 0.2rem 0.2rem 0.4rem rgba(0, 0, 0, 0.2),
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3);
}

.filter-tab svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ========================================
   DASHBOARD TABLE
   ======================================== */

.dashboard-table-wrapper {
  background: #f9fafb;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.4),
    -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-table thead th {
  padding: 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 0.125rem solid rgba(163, 177, 198, 0.2);
}

.dashboard-table tbody tr {
  transition: all 0.3s ease;
  cursor: pointer;
}

.dashboard-table tbody tr:hover {
  background: rgba(89, 151, 199, 0.05);
}

.dashboard-table tbody td {
  padding: 1.25rem 1rem;
  border-bottom: 0.0625rem solid rgba(163, 177, 198, 0.1);
  vertical-align: top;
}

/* Column Widths */
.col-name {
  width: 20%;
  min-width: 12rem;
}

.col-checkin {
  width: 20%;
  min-width: 12rem;
}

.col-observation {
  width: 30%;
  min-width: 18rem;
}

.col-actions {
  width: 15%;
  min-width: 8rem;
}

.col-engagement {
  width: 15%;
  min-width: 8rem;
}

/* ========================================
   STUDENT NAME CELL
   ======================================== */

.student-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.student-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-secondary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

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

.student-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.student-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary-blue);
}

.student-badges {
  display: flex;
  gap: 0.375rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 0.375rem;
  background: #f9fafb;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.25),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.6);
}

.badge-plan {
  color: var(--color-secondary-yellow);
}

.badge-risk {
  color: #ef4444;
}

.badge-photo {
  color: var(--color-secondary-blue);
}

/* ========================================
   CHECK-IN CELL
   ======================================== */

.checkin-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.mood-happy {
  background: #d1fae5;
  color: #065f46;
}

.mood-tired {
  background: #fef3c7;
  color: #92400e;
}

.mood-neutral {
  background: #e2e8f0;
  color: #475569;
}

.mood-excited {
  background: #ddd6fe;
  color: #5b21b6;
}

.mood-fussy {
  background: #fecaca;
  color: #991b1b;
}

.mood-emoji {
  font-size: 1rem;
  line-height: 1;
}

.mood-label {
  font-size: 0.8125rem;
}

.parent-note {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

/* ========================================
   OBSERVATION CELL
   ======================================== */

.observation-cell {
  position: relative;
}

.observation-text {
  font-size: 0.875rem;
  color: var(--color-primary-blue);
  line-height: 1.5;
  margin: 0;
}

.observation-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0.0625rem solid rgba(163, 177, 198, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--color-primary-blue);
  background: #f9fafb;
  resize: vertical;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.observation-input:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.3),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.6),
    0 0 0 0.1875rem rgba(89, 151, 199, 0.1);
}

.voice-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: #f9fafb;
  border-radius: 50%;
  color: var(--color-primary-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.voice-btn:hover {
  color: var(--color-secondary-blue);
  transform: scale(1.05);
}

/* ========================================
   ACTIONS CELL
   ======================================== */

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

.action-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.3s ease;
}

.action-btn-primary {
  background: #f9fafb;
  color: var(--color-primary-blue);
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.35),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.75);
}

.action-btn-primary:hover {
  color: var(--color-secondary-blue);
  transform: translateY(-0.0625rem);
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.4),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.8);
}

/* ========================================
   ENGAGEMENT CELL
   ======================================== */

.engagement-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: capitalize;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.engagement-high {
  background: #d1fae5;
  color: #065f46;
}

.engagement-medium {
  background: #fef3c7;
  color: #92400e;
}

.engagement-low {
  background: #e2e8f0;
  color: #475569;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #94a3b8;
}

.empty-state svg {
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* ========================================
   STUDENT PROFILE MODAL
   ======================================== */

.student-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: flex-end;
  z-index: 500;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 28rem;
  height: 100vh;
  background: #f9fafb;
  box-shadow: 
    -0.5rem 0 1.5rem rgba(163, 177, 198, 0.5);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}

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

.modal-header {
  padding: 1.5rem;
  border-bottom: 0.0625rem solid rgba(163, 177, 198, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-header-content {
  flex: 1;
  min-width: 0;
}

.modal-kicker {
  font-size: 0.625rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem 0;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.modal-title {
  font-family: var(--font-primary);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0;
}

.modal-badges {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.modal-status-row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  align-items: center;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: #f9fafb;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--color-primary-blue);
  transform: scale(1.05);
}

.modal-notice {
  padding: 0.75rem 1.5rem;
  background: rgba(89, 151, 199, 0.05);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-primary-blue);
  font-size: 0.875rem;
  font-weight: 600;
}

.modal-notice svg {
  flex-shrink: 0;
}

.modal-subtext {
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.modal-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* ========================================
   PROFILE TABS
   ======================================== */

.profile-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #f9fafb;
  padding: 0.375rem;
  border-radius: 2rem;
  box-shadow: 
    inset 0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    inset -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.profile-tab {
  flex: 1;
  padding: 0.625rem 1rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-tab.active {
  background: var(--color-primary-blue);
  color: white;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.profile-content {
  margin-top: 1.5rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========================================
   TIMELINE TAB
   ======================================== */

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.timeline-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.timeline-filters {
  display: flex;
  gap: 0.375rem;
  background: #f9fafb;
  padding: 0.25rem;
  border-radius: 1.25rem;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.timeline-filter-btn {
  padding: 0.375rem 0.75rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.timeline-filter-btn.active {
  background: #1e293b;
  color: white;
  box-shadow: 
    0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.3);
}

.timeline-filter-btn.filter-positive.active {
  background: #059669;
  color: white;
}

.timeline-filter-btn.filter-challenge.active {
  background: #dc2626;
  color: white;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.empty-timeline {
  color: #94a3b8;
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem 1rem;
  margin: 0;
}

.incident-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 0.875rem;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
  gap: 0.5rem;
}

.incident-type-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.incident-type {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary-blue);
}

.incident-tone {
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

.incident-tone-positive {
  background: #d1fae5;
  color: #065f46;
}

.incident-tone-challenge {
  background: #fecaca;
  color: #991b1b;
}

.incident-date {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.incident-summary {
  font-size: 0.8125rem;
  color: var(--color-primary-blue);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.incident-action {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.625rem 0;
}

.incident-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  padding-top: 0.5rem;
  border-top: 0.0625rem solid rgba(163, 177, 198, 0.15);
}

.incident-footer strong {
  color: #64748b;
  font-weight: 600;
}

/* ========================================
   PHOTOS TAB
   ======================================== */

.photos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.photos-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.upload-photo-btn {
  padding: 0.5rem 0.875rem;
  border: none;
  background: #f9fafb;
  color: var(--color-primary-blue);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border: 0.0625rem dashed rgba(163, 177, 198, 0.4);
  transition: all 0.3s ease;
}

.upload-photo-btn:hover {
  border-color: var(--color-secondary-blue);
  color: var(--color-secondary-blue);
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
}

.empty-photos {
  color: #94a3b8;
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem 1rem;
  margin: 0;
  grid-column: 1 / -1;
}

.photo-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.photo-placeholder {
  width: 100%;
  height: 8rem;
  background: linear-gradient(135deg, #dbeafe 0%, #fef3c7 50%, #e2e8f0 100%);
}

.photo-details {
  padding: 0.75rem;
}

.photo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.photo-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0;
}

.photo-date {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.photo-note {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.625rem 0;
}

.photo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  padding-top: 0.5rem;
  border-top: 0.0625rem solid rgba(163, 177, 198, 0.15);
}

/* ========================================
   HOME-SCHOOL COMMUNICATION TAB
   ======================================== */

.communicate-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

.template-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.template-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 0.875rem;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.template-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0 0 0.5rem 0;
}

.template-body {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 0.625rem 0;
}

.template-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  padding-top: 0.5rem;
  border-top: 0.0625rem solid rgba(163, 177, 198, 0.15);
}

.custom-note-section {
  margin-top: 1.5rem;
}

.custom-note-input {
  width: 100%;
  padding: 0.75rem;
  border: 0.0625rem solid rgba(163, 177, 198, 0.2);
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--color-primary-blue);
  background: #f9fafb;
  resize: vertical;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

.custom-note-input:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.3),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.6),
    0 0 0 0.1875rem rgba(89, 151, 199, 0.1);
}

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

.custom-note-hint {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin: 0;
  flex: 1;
}

.preview-message-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: #1e293b;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.4),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.preview-message-btn:hover {
  transform: translateY(-0.0625rem);
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.5),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.9);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .dashboard-wrapper {
    padding: 1rem;
  }
  
  .dashboard-header {
    padding: 1rem;
    border-radius: 1rem;
  }
  
  .dashboard-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .dashboard-header-left {
    gap: 1rem;
  }
  
  .dashboard-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .dashboard-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .dashboard-title {
    font-size: 1.25rem;
  }
  
  .dashboard-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .dashboard-stats {
    flex: 1;
    gap: 0.75rem;
  }
  
  .stat-item {
    padding: 0.375rem 0.75rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .dashboard-filters {
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .filter-tab {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .dashboard-table-wrapper {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .dashboard-table {
    min-width: 50rem;
  }
  
  .modal-content {
    max-width: 100%;
  }
  
  .profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .profile-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .dashboard-header-left {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stat-item {
    width: 100%;
    justify-content: center;
  }
}

