/* ============================================================
   ROMTECH WORK CLOCKING — Global Stylesheet
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-primary: #05070f;
  --bg-card: rgba(13, 20, 40, 0.8);
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-input-option: rgba(79, 142, 247, 0.4);
  --bg-input-focus: rgba(79, 142, 247, 0.08);

  --accent: #4f8ef7;
  --accent-today: #f16a0b;
  --accent-dark: #3b6fd4;
  --accent-alt: #7c3aed;
  --accent-glow: rgba(79, 142, 247, 0.3);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(79, 142, 247, 0.55);

  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --error-border: rgba(248, 113, 113, 0.3);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --success-border: rgba(52, 211, 153, 0.3);

  --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.55);
  --shadow-btn: 0 4px 20px rgba(79, 142, 247, 0.4);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fff;
}

button {
  cursor: pointer;
}

/* ── Animated background orbs ───────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  animation: orbFloat 10s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent), transparent);
  top: -200px;
  left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-alt), transparent);
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -40px) scale(1.06);
  }

  66% {
    transform: translate(-25px, 25px) scale(0.94);
  }
}

/* ============================================================
   AUTH PAGE  (login.php)
   ============================================================ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(79, 142, 247, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(124, 58, 237, 0.06) 0%,
      transparent 60%
    );
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  animation: fadeSlideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Auth Card ── */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Logo ── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.logo-icon {
  /* width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--accent-glow); */
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: url("../images/favicon32.png") no-repeat center center;
  background-size: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #f0f6fc 0%, #8892a4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Auth Header ── */
.auth-header {
  margin-bottom: 28px;
}

.auth-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Tab Switcher ── */
.tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
  gap: 2px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: calc(var(--radius-sm) - 4px);
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.tab-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border);
}

/* ── Forms ── */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeSlideIn 0.28s ease both;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.015em;
}

.form-group input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Fix autofill background bleed */
.form-group input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #0d1629 inset;
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
}

.input-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* ── Primary Button ── */
.btn-primary {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.02em;
  box-shadow:
    var(--shadow-btn),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
  -webkit-appearance: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(79, 142, 247, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  filter: brightness(1.08);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

/* ── Alerts ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: fadeSlideIn 0.25s ease;
}

.alert-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

/* ── Auth switch link ── */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 22px;
}

.auth-switch a {
  font-weight: 500;
  color: var(--accent);
}

.auth-switch a:hover {
  color: #fff;
}

/* ============================================================
   USER PAGE  (user_page.php)
   ============================================================ */

.user-page {
  background: var(--bg-primary);
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 40px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.navbar .brand:hover {
  color: var(--text-primary);
}

.navbar .brand .logo-icon {
  width: 34px;
  height: 34px;
  font-size: 15px;
  border-radius: 9px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px 5px 6px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-email {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: var(--radius-sm);
  color: rgba(248, 113, 113, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.btn-logout:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--error);
  transform: translateY(-1px);
}

/* ── Dashboard ── */
.dashboard {
  max-width: 920px;
  margin: 0 auto;
  padding: 52px 32px 80px;
  position: relative;
  z-index: 1;
}

.dashboard-header {
  margin-bottom: 20px;
  /* 44px */
  animation: fadeSlideUp 0.5s ease both;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dashboard-header-right {
  margin-left: 0px;
  margin-right: 0px;
  text-align: right;
}

.dashboard-header-right .live-time {
  margin-bottom: 16px;
  /* 8px match the h1 margin */
}

.dashboard-header-right .date-display {
  margin-bottom: 10px;
  /* 10px match the greeting margin */
}

.greeting {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.dashboard-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.date-display {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ── Stats Grid ── */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.5s 0.1s ease both;
}

.stat-card {
  flex: 1 1 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.13);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-value.accent {
  color: var(--accent);
}

/* ── Clock Card ── */
.clock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.5s 0.2s ease both;
}

.clock-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% -20%,
      rgba(79, 142, 247, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 50% 120%,
      rgba(124, 58, 237, 0.08) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.clock-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 142, 247, 0.45),
    transparent
  );
}

.live-time {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.live-date {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.coming-soon-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   LOGOUT PAGE  (logout.php)
   ============================================================ */

.logout-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background-image: radial-gradient(
    ellipse at 50% 50%,
    rgba(52, 211, 153, 0.04) 0%,
    transparent 60%
  );
}

.logout-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: fadeSlideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.logout-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 32px;
  color: var(--success);
}

.logout-card h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.logout-card > p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.logout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-secondary {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 14px;
  text-align: center;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ============================================================
   CALENDAR — User Schedule
   ============================================================ */

.calendar-section {
  margin-top: 40px;
  padding: 0;
}

.calendar-header {
  margin-bottom: 24px;
}

.calendar-header h2 {
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 600;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.view-toggles {
  display: flex;
  gap: 8px;
}

.btn-view {
  padding: 10px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-view:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.btn-view.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-btn);
}

.nav-controls {
  display: flex;
  gap: 8px;
}

.btn-nav {
  padding: 10px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-nav:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.btn-nav:active {
  transform: scale(0.98);
}

.calendar-grid {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
  user-select: none;
  -webkit-user-select: none;
}

.week-header,
.month-header,
.year-header {
  margin-bottom: 20px;
}

.week-header h3,
.month-header h3,
.year-header h3 {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
}

.week-grid,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-name {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.week-grid .cal-day {
  min-height: 110px;
}

.month-grid .cal-day {
  min-height: 70px;
}

.cal-day {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  transition: all var(--transition);
  overflow: hidden;
}

.cal-day:hover {
  background-color: var(--bg-input-focus);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cal-day.today {
  background-color: rgba(79, 142, 247, 0.1);
  border-color: var(--accent-today);
}

.cal-day.other-month {
  opacity: 0.4;
}

.day-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

/* Day selected state */
.cal-day.selected-day,
.mini-day.selected-day {
  background-color: rgba(79, 142, 247, 0.25) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent) inset;
}

/* Year View */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.mini-month {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: all var(--transition);
  cursor: pointer;
}

.mini-month:hover {
  background-color: var(--bg-input-focus);
  border-color: var(--accent);
}

.mini-month-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mini-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.mini-day:not(.empty):hover {
  background-color: var(--bg-input-focus);
  border-color: var(--accent);
}

.mini-day.today {
  background-color: rgba(79, 142, 247, 0.1);
  border-color: var(--accent-today);
}

.mini-day.empty {
  cursor: default;
  background-color: transparent;
  border: none;
}

.mini-badge {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  bottom: 2px;
  right: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 350px;
  width: 90%;
  box-shadow: var(--shadow-card);
  animation: fadeSlideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.modal-header h3 {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.option-btn {
  padding: 16px 4px;
  background-color: var(--bg-input-option);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  font-size: 14px;
  text-align: center;
  text-justify: center;
  cursor: pointer;
  transition: all var(--transition);
}

.option-btn:hover {
  border-color: var(--accent);
  background-color: var(--bg-input-focus);
  transform: translateY(-2px);
}

.option-btn.selected {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-btn);
}

.modal-actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.btn-clear,
.btn-close {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-clear {
  background-color: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-clear:hover {
  background-color: rgba(248, 113, 113, 0.25);
  border-color: #f87171;
}

.btn-close {
  background-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-close:hover {
  background-color: var(--accent-dark);
}

.btn-close:active {
  transform: scale(0.98);
}

/* ============================================================
   SELECTION BAR
   ============================================================ */

.selection-bar {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--accent-glow);
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideUpFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.selection-info {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ============================================================
   SHARED ANIMATIONS
   ============================================================ */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 680px) {
  .auth-card {
    padding: 30px 24px;
  }

  .logout-card {
    padding: 36px 24px;
  }

  .navbar {
    padding: 0 20px;
    height: 58px;
  }

  .navbar .brand span {
    display: none;
  }

  .user-email {
    display: none;
  }

  .dashboard {
    padding: 32px 20px 60px;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .clock-card {
    padding: 36px 24px;
  }

  .live-time {
    font-size: 16px;
    /* 48px */
  }

  .calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .view-toggles,
  .nav-controls {
    width: 100%;
    justify-content: stretch;
  }

  .btn-view,
  .btn-nav {
    flex: 1;
  }

  .calendar-grid {
    padding: 4px;
  }

  .week-grid,
  .month-grid {
    gap: 4px;
  }

  .day-name {
    font-size: 10px;
    padding: 6px 2px;
  }

  .week-grid .cal-day {
    min-height: 80px;
  }

  .month-grid .cal-day {
    min-height: 52px;
  }

  .cal-day {
    padding: 6px 4px;
    gap: 3px;
  }

  .day-number {
    font-size: 12px;
  }

  .status-badge {
    padding: 2px 5px;
    font-size: 10px;
  }

  .year-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .mini-month {
    padding: 2px;
  }

  .modal-card {
    padding: 24px;
    max-width: 90vw;
  }

  .modal-options {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
  }

  .option-btn {
    padding: 12px 8px;
    font-size: 14px;
  }

  .modal-actions {
    flex-direction: row;
  }

  .btn-clear,
  .btn-close {
    width: 100%;
  }
}
