.attendance-form .time-display {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.attendance-form .time {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--onSecondBackground);
  margin-bottom: 8px;
}

.attendance-form .date {
  font-size: 1rem;
  color: var(--placeholder);
  margin-bottom: 12px;
}

.attendance-form .schedule-section {
  border-top: 1px solid var(--border);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 12px;
}
/* schedule section */

.attendance-form .schedule-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.attendance-form .schedule-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--onSecondBackground);
  margin-bottom: 12px;
}

.attendance-form .schedule-header svg {
  width: 18px;
  height: 18px;
  stroke: var(--onSecondBackground);
}

.attendance-form .shift-info {
  background: var(--secondBackground);
  border-radius: 8px;
}

.attendance-form .shift-type {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  background-color: var(--tertiary);
  padding: 1rem;
  border-radius: 12px;
  justify-content: space-between;
}

.attendance-form .shift-icon {
  width: 18px;
  height: 18px;
  color: var(--onSecondBackground);
}

.attendance-form .shift-name {
  font-weight: 600;
  color: var(--onSecondBackground);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.attendance-form .shift-name svg {
  width: 18px;
  height: 18px;
}

.attendance-form .shift-duration {
  color: var(--onTertiary);
  font-size: 0.85rem;
}

.attendance-form .schedule-details {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1rem;
}

.attendance-form .schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 0.5rem;
  border-radius: 12px;
  background-color: var(--background);
}

.attendance-form .schedule-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.attendance-form .schedule-value {
  font-size: 0.85rem;
  font-weight: 600;
}

.attendance-form .schedule-item.in {
  color: var(--success);
}

.attendance-form .schedule-item.out {
  color: var(--error);
}

.attendance-form .schedule-item.grace {
  color: var(--accent);
}

/* button */
.attendance-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  width: 100%;
}

.punch-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary);
  color: var(--onPrimary);
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  width: 100%;
  height: 56px;
  overflow: hidden;
}

.punch-button:hover {
  background: var(--primaryHover);
  color: var(--onPrimaryHover);
}

.punch-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--secondBackgroundShadow);
}

.punch-button.punched-in {
  background: linear-gradient(135deg, var(--error), var(--errorHover));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.punch-button.punched-in:hover {
  background: linear-gradient(135deg, var(--errorHover), var(--error));
  box-shadow: 0 6px 20px var(--secondBackgroundShadow);
}

.punch-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.punch-button:hover .punch-icon {
  transform: scale(1.1);
}

.punch-button .status-indicator {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--secondBackground);
  transition: all 0.3s ease;
}

.punch-button .status-indicator.active {
  background: var(--error);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.punch-time-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.punch-time-card .punch-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--onSecondBackground);
  margin-bottom: 12px;
}

.punch-time-card .punch-card-header svg {
  width: 18px;
  height: 18px;
  stroke: var(--onSecondBackground);
}

.punch-time-card .punch-times {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.punch-time-card .punch-time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  background-color: var(--background);
}

.punch-time-card .punch-time-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--placeholder);
}

.punch-time-card .punch-time-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--onSecondBackground);
}

.punch-time-card .punch-time-item.in .punch-time-value {
  color: var(--success);
}

.punch-time-card .punch-time-item.out .punch-time-value {
  color: var(--error);
}

.punch-time-card .punch-time-item.empty .punch-time-value {
  color: var(--placeholder);
  font-style: italic;
}

.punch-time-card .punch-duration {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--onTertiary);
}
