/* 
  Dashboard Specific Styles
*/

.section-content {
  display: none;
}
.section-content.active {
  display: block;
}

.bento-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  grid-template-rows: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.bento-card {
  background: var(--bg-card-white);
  border-radius: 40px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px 0 rgba(0, 0, 0, 0.08);
}

.bento-profile {
  grid-column: 1;
  grid-row: 1;
  padding: 32px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  /* Premium Mesh Gradient */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 40px rgba(0,0,0,0.04);
}

.bento-profile::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: var(--color-orange);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.15; }
  100% { transform: scale(1.2) translate(-20px, 20px); opacity: 0.25; }
}





.profile-balance-large {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  z-index: 2;
  width: 100%;
}

.balance-label {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-navy-muted);
}

.balance-value {
  font-family: var(--font-title);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.balance-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: auto;
}

.btn-glass-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 12px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.btn-glass-action:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.btn-glass-action.primary {
  background: var(--color-navy);
  color: white;
  border: none;
}

.btn-glass-action.primary:hover {
  background: #000;
}


.bento-working {
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bento-onboarding {
  grid-column: 3;
  grid-row: 1 / span 2;
  background: var(--bg-card-sand);
}

.bento-calendar {
  grid-column: 1 / span 2;
  grid-row: 2;
  background-color: var(--bg-card-sand-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.dashboard-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 32px; /* Super rounded for $1B look */
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dashboard-card:hover {
  border: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 48px 0 rgba(0, 0, 0, 0.5);
}

.card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-card {
  
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 4px solid var(--bg-card-white);
  background-color: var(--color-orange);
}

.profile-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
}

.profile-role {
  color: var(--color-navy-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.working-format-card {
  align-items: center;
}

.chart-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px 0;
}

.chart-svg {
  transform: rotate(-90deg);
}

.chart-circle-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 8;
}

.chart-circle-val1 {
  fill: none;
  stroke: #16a34a;
  stroke-width: 8;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 50;
  stroke-linecap: round;
}

.chart-circle-val2 {
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 8;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 190;
  stroke-linecap: round;
}

.chart-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.chart-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
}

.chart-label {
  font-size: 9px;
  color: var(--color-navy-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tasks-card {
  grid-row: span 2;
  
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

.task-item {
  
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  cursor: pointer;
}

.task-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-icon-wrapper svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-orange);
  fill: none;
}

.task-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.3px;
}

.task-meta {
  color: var(--color-navy-muted);
  font-size: 12px;
}

.task-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.2s;
}

.task-checkbox.checked {
  background-color: #111111;
  border-color: #111111;
  color: #ffffff;
}

.calendar-card {
  grid-column: 1;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-month {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 16px;
}

.calendar-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.calendar-day-name {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-navy-muted);
  text-transform: uppercase;
}

.calendar-day-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.calendar-day-col.active .calendar-day-num {
  background-color: #000000;
  color: #ffffff;
}

.calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 16px;
}

.timeline-event {
  background-color: #000000;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-event-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
}

.timeline-event-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.bento-bottom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.bento-stat {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.bento-stat.sand { background-color: var(--bg-card-sand); }

.bento-stat.sand-dark { background-color: var(--bg-card-sand-dark); }

.bento-stat.gradient {
  background: radial-gradient(circle at 10% 10%, #fff1df, transparent 60%),
              radial-gradient(circle at 90% 90%, #ead0c2, transparent 60%),
              radial-gradient(circle at 50% 50%, #e0c8b6, transparent 60%),
              #d8cec3;
}

.kpi-val-big {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1;
}

.kpi-label-small {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 9px;
  color: var(--color-navy-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-change-tag {
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  /* Make bento grid elements single column on mobile */
  .bento-top {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }
  .bento-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .bento-profile {
    grid-column: 1;
    grid-row: auto;
    height: 320px;
  }
  .bento-working, .bento-onboarding, .bento-calendar {
    grid-column: 1;
    grid-row: auto;
  }
  .bento-stat {
    height: 180px;
    padding: 20px;
  }
  .bento-stat.gradient, .bento-stat:last-child {
    grid-column: span 2;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-row {
    grid-template-columns: 1fr 1fr; /* 2x2 grid for KPI on mobile */
    gap: 12px;
  }
  
  .kpi-row-4 {
    grid-template-columns: 1fr 1fr;
  }
  
  .kpi-small-card {
    height: auto;
    min-height: 140px;
    padding: 16px;
  }
  
  .kpi-val-big {
    font-size: 24px;
    margin: 8px 0;
    word-break: break-word;
  }
}

/* Stolen Inline styles from HTML */
.bento-profile-bg {
  background-image: url('/fam.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 28px;
}

.bento-profile-gradient {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  height: auto;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #111111;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bento-gradient-btn {
  background-color: #000;
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  align-self: flex-start;
  margin-top: auto;
  z-index: 2;
  position: relative;
}

.bento-img-stat-bg {
  background-image: url('/warehouse.jpg');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 28px;
  z-index: 1;
}

.bento-img-stat-content {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: 16px;
  width: fit-content;
  align-self: flex-end;
  margin-top: auto;
}

.btn-small-white {
  background-color: #ffffff;
  color: #111111;
  border: none;
  padding: 10px 20px;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.btn-small-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.bento-stat-image {
  background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)), url('/fam.jpg');
  background-size: cover;
  position: relative;
  color: white;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 20px;
  padding: 10px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.3);
}

.sand { background-color: var(--bg-card-sand); }
.sand-dark { background-color: var(--bg-card-sand-dark); }

/* --- New Calendar 1-to-1 Dribbble --- */
.bento-calendar {
  display: flex;
  flex-direction: column;
}

.cal-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.cal-btn-pill {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #111;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  text-transform: uppercase;
}

.cal-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cal-title-wrap h2 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #111;
  margin: 0;
}

.cal-tabs {
  display: flex;
  gap: 16px;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  color: rgba(0,0,0,0.4);
}

.cal-tabs span {
  cursor: pointer;
}

.cal-tabs span.active {
  color: #111;
  border-bottom: 2px solid #111;
  padding-bottom: 2px;
}

.cal-body-new {
  display: flex;
  flex: 1;
  gap: 20px;
}

.cal-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 40px; /* Align with grid lines below X axis */
  padding-bottom: 20px;
  color: rgba(0,0,0,0.5);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  min-width: 50px;
}

.cal-grid-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cal-x-axis {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: rgba(0,0,0,0.6);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.cal-x-axis span {
  flex: 1;
  text-align: center;
}

.cal-grid-lines {
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}

.cal-line {
  width: 1px;
  height: 100%;
  border-left: 1px dashed rgba(0,0,0,0.15);
}


.cal-events-layer {
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.cal-column-group {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  pointer-events: auto;
}

.cal-v-bar {
  width: 24px;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, filter 0.2s;
  cursor: pointer;
  position: relative;
}

.cal-v-bar:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}

.bar-black {
  background-color: #111111;
  color: #ffffff;
}

.bar-orange {
  background-color: var(--color-orange);
  color: #ffffff;
}

.bar-val {
  font-family: var(--font-title);
  font-size: 9px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

.cal-v-bar:hover .bar-val {
  opacity: 1;
}

/* Adjust grid lines to be slightly taller to match the new top offset */
.cal-grid-lines {
  top: 32px;
}


/* --- Extracted Inline Styles --- */
.profile-name { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 2px; }
.profile-role { font-size: 12px; font-weight: 700; opacity: 0.5; letter-spacing: 0.5px; text-transform: uppercase; }

.bento-working { padding-bottom: 24px; justify-content: space-between; }
.working-header { display: flex; justify-content: space-between; align-items: center; width: 100%; position: absolute; top: 24px; left: 0; padding: 0 24px; }
.working-title { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }

.chart-container { margin-top: 48px; }
.chart-num-val { font-size: 32px; font-weight: 800; letter-spacing: -1px; color: #111; }
.chart-label-text { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: rgba(0,0,0,0.5); text-transform: uppercase; }
.chart-legend { margin-top: auto; padding-top: 16px; width: 100%; justify-content: space-between; }

.dot-green { background-color: #68d391; }
.dot-purple { background-color: #b794f4; }
.dot-pink { background-color: #f687b3; }

.onboarding-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.onboarding-title { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
.onboarding-percent { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.kpi-label-small { margin-top: 12px; display: block; }
.btn-full { margin-top: auto; align-self: center; width: 100%; border-radius: 20px; padding: 12px; }

.bento-stat.gradient { align-items: center; justify-content: center; text-align: center; }
.bento-stat.gradient .kpi-label-small { margin-top: auto; }
.kpi-val-xl { font-size: 52px; font-weight: 800; letter-spacing: -2px; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.welcome-title { font-size: 24px; font-weight: 800; letter-spacing: -1px; }

.text-right { text-align: right; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.btn-submit { padding: 14px 28px; width: auto; font-size: 14px; background-color: #000; color: white; cursor: pointer; border: none; border-radius: 8px; font-family: var(--font-title); font-weight: 600; }

.settings-title { font-size: 24px; font-weight: 800; color: var(--color-navy); margin: 0; }
.settings-subtitle { margin-top: 4px; display: block; color: var(--color-navy-muted); }
.settings-card { padding: 32px; display: flex; flex-direction: column; gap: 28px; background: #ffffff; border-radius: 24px; border: 1px solid rgba(0, 0, 0, 0.04); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02); max-width: 600px; }
.settings-profile-header { display: flex; align-items: center; gap: 20px; border-bottom: 1.5px solid rgba(0, 0, 0, 0.04); padding-bottom: 24px; }
.settings-avatar { width: 72px; height: 72px; border-radius: 50%; background-image: url('/fam.jpg'); background-size: cover; background-position: center; border: 3px solid #ffffff; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.settings-name { font-family: var(--font-title); font-weight: 800; font-size: 20px; color: var(--color-navy); margin: 0; }
.settings-id { font-size: 13px; font-weight: 600; color: var(--color-navy-muted); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.settings-id-icon { width: 14px; height: 14px; stroke: var(--color-orange); }
.settings-fields { display: flex; flex-direction: column; gap: 20px; }
.settings-field-row { display: flex; justify-content: space-between; align-items: center; }
.settings-field-label { font-family: var(--font-title); font-size: 12px; font-weight: 700; color: var(--color-navy-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.settings-field-val { font-size: 14px; font-weight: 600; color: var(--color-navy); }
.settings-actions { margin-top: 12px; display: flex; gap: 12px; }
.btn-settings-edit { padding: 12px 24px; font-size: 13px; font-weight: 700; background: #f0f0f5; color: var(--color-navy); border-radius: 12px; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.btn-icon { width: 16px; height: 16px; }
.btn-logout-danger { padding: 12px 24px; font-size: 13px; font-weight: 700; background: #fff1f0; color: #ff4d4f; border-radius: 12px; border: 1px solid #ffccc7; cursor: pointer; display: flex; align-items: center; gap: 8px; }

.profile-floating-stats {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.floating-stat {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.floating-stat .stat-label {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(0,0,0,0.5);
}

.floating-stat .stat-value {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
}


.profile-balance-large {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.balance-label {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-navy-muted);
}
.balance-value {
  font-family: var(--font-title);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--color-navy);
}
.bento-profile-bottom {
  display: flex;
  flex-direction: column;
}


@media (max-width: 768px) {
  /* Fix Profile Card */
  .bento-profile {
    height: auto !important;
    padding: 24px !important;
  }
  .balance-value {
    font-size: 36px !important;
  }
  .bento-profile::before {
    width: 150px;
    height: 150px;
    top: -30px;
    right: -30px;
  }

  /* Fix Working Chart Card */
  .bento-working {
    height: auto !important;
    padding: 20px !important;
  }
  .chart-svg {
    width: 120px !important;
    height: 120px !important;
  }
  .chart-container {
    transform: none;
    margin: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .working-header {
    margin-bottom: 0px;
  }
  .chart-legend {
    gap: 12px !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Optimize Calendar Layout */
  .bento-calendar {
    padding: 20px !important;
  }
  .cal-title-wrap h2 {
    font-size: 24px !important;
  }
  .cal-body-new {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
  }
  .cal-grid-area {
    min-width: 500px; /* Enable horizontal scrolling so bars are not squished */
  }
  .cal-x-axis span {
    font-size: 9px !important;
  }
  .cal-y-axis span {
    font-size: 9px !important;
  }
}


@media (max-width: 768px) {
  /* Fix Calendar Header Layout */
  .cal-header-new {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .cal-title-wrap {
    order: -1;
    width: 100%;
    margin-bottom: 8px;
  }
  .cal-title-wrap h2 {
    font-size: 28px !important;
    text-align: center;
  }
  .cal-btn-pill {
    padding: 8px 16px;
    font-size: 10px;
    flex: 1;
    max-width: 120px;
    text-align: center;
  }
  
  /* Hide huge scrollbar on mobile but keep it scrollable */
  .cal-body-new::-webkit-scrollbar {
    display: none;
  }
  .cal-body-new {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  
  /* Prevent tabs from squishing */
  .cal-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}


@media (max-width: 768px) {
  /* Table Mobile Scroll */
  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 24px;
    box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.1); /* Indicate scrollability */
  }
  .ms-table {
    min-width: 800px; /* Force horizontal scroll */
  }
  .ms-table th, .ms-table td {
    white-space: nowrap; /* Prevent text wrapping */
  }
}
