/* Vutacloud - Clock-In Panel Styles (Wise Design System) */

.clockin-viewport-wrapper {
  height: calc(100vh - 96px);
  overflow-y: auto;
  background-color: var(--bg-color);
  padding-bottom: 40px;
  font-feature-settings: "calt" 1;
  position: relative; /* For sticky children */
}

.clockin-mobile-subnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  margin-bottom: 16px;
}

.clockin-mobile-subnav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--primary-color);
  border: none;
  border-radius: 9999px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-md);
}

.clockin-subnav-btn {
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.clockin-subnav-btn:hover {
  background-color: #1f2937;
  transform: scale(1.02);
}

.clockin-subnav-btn:active {
  transform: scale(0.95);
}

.clockin-subnav-btn svg {
  stroke-width: 2.5;
}

.clockin-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.clockin-header {
  text-align: left;
  margin-bottom: 8px;
}

.clockin-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--text-main);
  margin: 0;
  text-transform: none; /* Wise style is bold but not always uppercase for subheads */
}

.clockin-header p {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.2;
}

/* Clock-In Card - Current Shift Detail */
.clockin-current-shift-card {
  background: var(--bg-panel);
  border-radius: 30px;
  padding: 32px 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.clockin-current-shift-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--primary-color);
}

.shift-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shift-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.shift-time-range {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.shift-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.shift-detail-row svg {
  color: var(--text-light);
}

.clockin-quick-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-quick-nav {
  background: rgba(22, 51, 0, 0.08); /* Secondary Subtle Pill */
  border: none;
  padding: 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.btn-quick-nav:hover {
  transform: scale(1.05);
  background: rgba(22, 51, 0, 0.12);
}

.btn-quick-nav:active {
  transform: scale(0.95);
}

/* Action Buttons */
.clockin-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clockin-btn {
  width: 100%;
  border: none;
  background: var(--primary-color);
  color: var(--primary-dark);
  padding: 20px 32px;
  border-radius: 9999px;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
  box-shadow: 0 8px 24px rgba(159, 232, 112, 0.25);
}

.clockin-btn svg {
  stroke: var(--primary-dark);
}

.clockin-btn:hover {
  transform: scale(1.05);
  background-color: #cdffad; /* Pastel Green hover */
}

.clockin-btn:active {
  transform: scale(0.95);
}

.clockin-btn.clockout-mode {
  background: var(--text-main); /* Near Black */
  color: var(--primary-color); /* Wise Green text for contrast */
}

.clockin-btn.clockout-mode svg {
  stroke: var(--primary-color);
}

.clockin-btn.clockout-mode:hover {
  background-color: #1e1f1d;
}

/* Break Button Specifics */
.clockin-btn.break-btn {
  background: rgba(22, 51, 0, 0.08); /* Secondary Subtle Pill */
  color: var(--text-main);
  box-shadow: none;
  font-size: 18px;
  padding: 16px 24px;
  margin-top: -8px; /* Slightly closer to the main button */
}

.clockin-btn.break-btn svg {
  stroke: var(--text-main);
}

.clockin-btn.break-btn:hover {
  background-color: rgba(22, 51, 0, 0.12);
  transform: scale(1.02);
}

.clockin-btn.break-btn.active-break {
  background: var(--text-main);
  color: #ffffff;
}

.clockin-btn.break-btn.active-break svg {
  stroke: #ffffff;
  fill: #ffffff;
}

.clockin-btn.break-btn.active-break:hover {
  background-color: #1e1f1d;
}

.clockin-btn-disabled {
  background: #f1f3f0 !important;
  color: var(--text-light) !important;
  border: 1px solid var(--border-color) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.clockin-info-text {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  font-weight: 400;
  line-height: 1.5;
  padding: 0 16px;
}

/* Schedule Preview */
.clockin-schedule-section {
  background: var(--bg-panel);
  border-radius: 40px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.schedule-header span:first-child {
  font-weight: 900;
  font-size: 22px;
  color: var(--text-main);
  font-family: var(--font-display);
  line-height: 0.85;
}

.schedule-header span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.clockin-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: var(--primary-light);
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.schedule-item:hover {
  transform: translateX(8px);
  border-color: var(--primary-color);
}

.schedule-indicator {
  width: 4px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 9999px;
}

.schedule-details {
  flex: 1;
}

.schedule-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.schedule-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Mobile specific tweaks */
@media (max-width: 576px) {
  .clockin-time {
    font-size: 64px;
  }
  
  .clockin-header h1 {
    font-size: 40px;
  }
}

/* Notifications List (Full Screen) */
.notifications-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-full-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.notification-full-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.notification-full-item.unread {
  background: var(--primary-light);
  border-color: rgba(159, 232, 112, 0.3);
}

.notification-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(22, 51, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.notification-full-item.unread .notification-icon {
  background: var(--primary-color);
  color: var(--primary-dark);
}

.notification-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notification-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Empty State (No Shifts) */
.clockin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
  border-radius: 30px;
  background: var(--bg-panel);
  border: 1px dashed var(--border-color);
  margin: 16px 0;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-state-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--text-main);
  line-height: 1.1;
}

.empty-state-desc {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Full List Notifications styling */
.notifications-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.notification-full-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-panel);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  cursor: pointer;
  position: relative;
}

.notification-full-item:hover {
  transform: scale(1.02);
  background: #fcfdfb;
}

.notification-full-item.unread {
  border-color: var(--primary-color);
  background: rgba(159, 232, 112, 0.03);
}

.notification-full-item.unread::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

.notification-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.type-shift { background: #e2f6d5; color: #163300; }
.notification-icon.type-leave { background: #fff8e1; color: #f57c00; }
.notification-icon.type-alert { background: #ffebee; color: #d32f2f; }
.notification-icon.type-chat { background: #e3f2fd; color: #1976d2; }

.notification-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.notification-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- PREMIUM CLOCK IN NEW DESIGN --- */
.clockin-viewport-wrapper.clockin-new-design {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 96px); /* Align with main viewport wrapper */
  padding-bottom: 0;
  background-color: var(--bg-color);
  overflow-y: auto;
}

.clockin-map-section {
  position: relative;
  height: 320px;
  width: 100%;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}

#clockin-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

#clockin-map .leaflet-tile {
  filter: grayscale(100%) contrast(1.15) brightness(0.96);
}

/* Floating Status Badge */
.geofence-badge-container {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 999;
  pointer-events: none;
}

.geofence-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(14, 15, 12, 0.08);
  border: 1px solid rgba(14, 15, 12, 0.08);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.geofence-badge.loading .pulse-dot {
  background-color: #ffd11a;
}

.geofence-badge.in-range {
  background: rgba(226, 246, 213, 0.95);
  border-color: rgba(159, 232, 112, 0.4);
  color: #163300;
}

.geofence-badge.in-range .pulse-dot {
  background-color: #054d28;
}

.geofence-badge.out-range {
  background: rgba(255, 235, 235, 0.95);
  border-color: rgba(208, 50, 56, 0.3);
  color: #d03238;
}

.geofence-badge.out-range .pulse-dot {
  background-color: #d03238;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: badgePulse 1.5s infinite ease-in-out;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Location simulator control */
.location-simulator-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(14, 15, 12, 0.08);
  border: 1px solid rgba(14, 15, 12, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.simulator-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.simulator-toggle {
  background: var(--text-main);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.simulator-toggle:hover {
  transform: scale(1.05);
  background: #1f2937;
}

.simulator-toggle:active {
  transform: scale(0.95);
}

/* Custom User Pulsing Avatar Pin */
.user-map-marker-container {
  position: relative;
  width: 50px;
  height: 50px;
}

.user-map-marker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
}

.user-map-marker-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(159, 232, 112, 0.45);
  z-index: 1;
  animation: mapPulse 2s infinite ease-out;
}

@keyframes mapPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.4;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Bottom Panel styling with curved borders */
.clockin-bottom-panel {
  position: relative;
  background-color: var(--bg-panel, #ffffff);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  margin-top: -30px; /* Slight overlap on map */
  z-index: 5;
  padding: 0 20px 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -10px 30px rgba(14, 15, 12, 0.05);
}

/* Curved notch cutout effect for the circular button */
.notch-cutout {
  display: none !important;
}

.notch-cutout::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: var(--bg-panel, #ffffff);
  box-shadow: 0 -10px 30px rgba(14, 15, 12, 0.03);
}

/* Giant Circular Clock-In Button */
.clockin-circle-wrapper {
  position: absolute;
  top: -60px; /* Overlaps map, sitting in notch */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.clockin-circle-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9fe870, #8ae053);
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px rgba(159, 232, 112, 0.3);
  color: #163300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.clockin-circle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(159, 232, 112, 0.45);
}

.clockin-circle-btn:active {
  transform: scale(0.95);
}

.btn-circle-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clockin-circle-btn .btn-icon {
  stroke: #163300;
  width: 28px;
  height: 28px;
}

.clockin-circle-btn span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* Clocked-out active state modifier (clockout-mode means clocked in) */
.clockin-circle-btn.clockout-mode {
  background: #0e0f0c;
  box-shadow: 0 10px 25px rgba(14, 15, 12, 0.3);
  color: #ffffff;
}

.clockin-circle-btn.clockout-mode .btn-icon {
  stroke: #ffffff;
}

/* Locked mode when out of geofence bounds */
.clockin-circle-btn.locked-mode {
  background: #d03238 !important;
  border-color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(208, 50, 56, 0.35) !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
}

/* Disabled mode when no shifts today */
.clockin-circle-btn.disabled-mode {
  background: #e4e4e7 !important;
  border-color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(14, 15, 12, 0.08) !important;
  color: #71717a !important;
  cursor: not-allowed !important;
}

.clockin-circle-btn.disabled-mode .btn-icon {
  stroke: #71717a !important;
}

.clockin-circle-btn.disabled-mode:hover {
  transform: none !important;
  box-shadow: 0 10px 25px rgba(14, 15, 12, 0.08) !important;
}

.clockin-circle-btn.locked-mode .btn-icon {
  stroke: #ffffff !important;
  width: 36px !important;
  height: 36px !important;
}

.clockin-circle-btn.locked-mode:hover {
  transform: scale(1.02) !important; /* Slight wiggle but no action */
  box-shadow: 0 10px 25px rgba(208, 50, 56, 0.45) !important;
}

/* Inner panel content */
.clockin-panel-content {
  width: 100%;
  max-width: 440px;
  margin-top: 80px; /* Space for the giant button */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Shift Info Card */
.clockin-new-design .clockin-current-shift-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(14, 15, 12, 0.06);
  box-shadow: 0 4px 20px rgba(14, 15, 12, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.clockin-new-design .clockin-current-shift-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, #9fe870, #5ea83b);
}

/* Break Pill Button */
.clockin-break-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.clockin-break-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(14, 15, 12, 0.08);
  padding: 10px 24px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: #163300; /* Dark green brand accent */
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 51, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.clockin-break-btn svg {
  stroke: #163300;
}

.clockin-break-btn:hover {
  transform: scale(1.05);
  background: rgba(22, 51, 0, 0.03);
  border-color: rgba(22, 51, 0, 0.2);
}

.clockin-break-btn:active {
  transform: scale(0.95);
}

.clockin-break-btn.active-break {
  background: #163300;
  color: #ffffff;
  border-color: #163300;
  box-shadow: 0 6px 16px rgba(22, 51, 0, 0.25);
}

.clockin-break-btn.active-break svg {
  stroke: #ffffff;
}

/* 2-Column Action Cards */
.clockin-grid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.clockin-grid-card {
  background: #ffffff;
  border: 1px solid rgba(14, 15, 12, 0.06);
  border-radius: 24px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.clockin-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(14, 15, 12, 0.05);
  border-color: rgba(14, 15, 12, 0.1);
}

.clockin-grid-card:active {
  transform: translateY(-1px);
}

.card-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-circle.time-off {
  background-color: rgba(159, 232, 112, 0.15);
  color: #163300;
}

.card-icon-circle.timesheet {
  background-color: rgba(159, 232, 112, 0.15);
  color: #163300;
}

.clockin-grid-card .card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  text-align: center;
}

/* Upcoming Shifts Section Adjustments */
.clockin-new-design .clockin-upcoming-section {
  margin-top: 12px;
}

.clockin-new-design .section-divider {
  height: 1px;
  background-color: rgba(14, 15, 12, 0.06);
  margin-bottom: 20px;
}

/* --- Phase 5 Floating Header Controls & Relocated Containers --- */

.clockin-floating-top-bar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  gap: 12px;
}

.clockin-map-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(14, 15, 12, 0.08);
  box-shadow: 0 4px 12px rgba(14, 15, 12, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main, #0e0f0c);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.clockin-map-icon-btn:hover {
  background: #ffffff;
  color: #163300;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 15, 12, 0.12);
}

.clockin-map-icon-btn:active {
  transform: scale(0.95) translateY(0);
  box-shadow: 0 2px 6px rgba(14, 15, 12, 0.08);
}

.clockin-map-noti-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #d03238;
  color: #ffffff;
  font-family: var(--font-body), sans-serif;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(208, 50, 56, 0.2);
}

.clockin-geofence-status-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -8px;
  margin-bottom: 8px;
}

.clockin-geofence-status-wrapper .geofence-badge-container {
  position: static;
  pointer-events: auto;
}

.clockin-simulator-card {
  background: #ffffff;
  border: 1px dashed rgba(14, 15, 12, 0.12);
  padding: 16px 20px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(14, 15, 12, 0.01);
}

.clockin-simulator-card .simulator-label {
  font-family: var(--font-body), sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #7c7d7a);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clockin-simulator-card .simulator-toggle {
  background: var(--text-main, #0e0f0c);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-body), sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clockin-simulator-card .simulator-toggle:hover {
  background: #1f2937;
  transform: scale(1.04);
}

.clockin-simulator-card .simulator-toggle:active {
  transform: scale(0.96);
}

@media (max-width: 1024px) {
  .clockin-viewport-wrapper.clockin-new-design {
    height: calc(100vh - 84px) !important;
    background-color: transparent !important;
  }
  .clockin-floating-top-bar {
    top: 96px !important;
  }
  .geofence-badge-container {
    top: 96px !important;
  }
}

