/* ================= Employee Attendance Page ================= */

.emp-att-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: empAttFadeIn 0.4s ease-out;
}

@keyframes empAttFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emp-att-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.emp-att-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;          /* simple black-ish title */
}

.emp-att-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.emp-att-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.emp-att-input {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  min-width: 160px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.emp-att-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

/* ================= Download button – BLUE + shine ================= */

.emp-att-btn {
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 24px;
  border-radius: 999px;

  background: var(--primary, #3b82f6);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(59,130,246,0.45);

  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

/* shine / flash every 3s */
.emp-att-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  width: 40%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.95) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-150%) skewX(-20deg);
  opacity: 0;
  pointer-events: none;
  animation: empAttBtnShine 3s infinite;
}

@keyframes empAttBtnShine {
  0% {
    transform: translateX(-150%) skewX(-20deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  25% {
    transform: translateX(150%) skewX(-20deg);
    opacity: 0;
  }
  100% {
    transform: translateX(150%) skewX(-20deg);
    opacity: 0;
  }
}

.emp-att-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 32px rgba(59,130,246,0.6);
  filter: brightness(1.05);
}

.emp-att-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 8px 18px rgba(59,130,246,0.5);
}

/* ================= Table card + animations ================= */

.emp-att-table-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
}

/* ❌ remove aurora animation that was making the white line */
.emp-att-table-card::before {
  content: none;
}

/* (keeping the keyframes in case you reuse later) */
@keyframes empAttAurora {
  0% {
    transform: translate3d(-10px, 0, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(10px, 0, 0);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(-10px, 0, 0);
    opacity: 0.5;
  }
}

/* shaking / wobble only while loading */
.emp-att-table-card.emp-att-loading {
  animation: empAttLoadingShake 0.8s ease-in-out infinite;
}

@keyframes empAttLoadingShake {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-2px); }
  75%      { transform: translateY(2px); }
}

.emp-att-table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
  z-index: 1; /* above aurora (even though we disabled it) */
}

.emp-att-table th,
.emp-att-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

/* center IN / OUT columns text */
.emp-att-table th:nth-child(5),
.emp-att-table th:nth-child(6),
.emp-att-table td:nth-child(5),
.emp-att-table td:nth-child(6) {
  text-align: center;
}

.emp-att-empty {
  text-align: center;
  padding: 22px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ================= IN / OUT chips – SMALL + ANIMATED ================= */

.emp-att-chip-row {
  display: grid;
  grid-template-columns: repeat(5, auto);  /* 5 per row */
  justify-content: flex-start;             /* LEFT aligned */
  column-gap: 4px;
  row-gap: 4px;
}

.emp-att-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 2px 8px;          /* smaller size */
  border-radius: 999px;
  min-width: 40px;           /* compact width */

  font-size: 10px;           /* small font */
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  border: 1px solid transparent;
  background: #f3f4f6;
  color: #111827;

  box-shadow: 0 1px 3px rgba(15,23,42,0.12);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;

  /* small pop-in animation */
  animation: empAttChipIn 0.35s ease-out;
}

@keyframes empAttChipIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* IN – bright green */
.emp-att-chip.in {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.55);
  color: #059669;
}

/* OUT – bright red */
.emp-att-chip.out {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.55);
  color: #dc2626;
}

/* hover = futuristic glow */
.emp-att-chip:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 14px rgba(15,23,42,0.35);
  background: #ffffff;
}

/* ================= Responsive tweaks ================= */

@media (max-width: 640px) {
  .emp-att-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .emp-att-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .emp-att-chip-row {
    grid-template-columns: repeat(3, auto); /* 3 per row on mobile */
    justify-content: flex-start;
  }
}

/* ===== Employee row hover animation (subtle highlight) ===== */

.emp-att-table tbody tr {
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.emp-att-table tbody tr:hover {
  background-color: rgba(148, 163, 184, 0.12); /* soft slate tint */
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}
/* ==== GLOBAL: turn off all shiny / splash effects everywhere ==== */

/* Any element using the .shiny helper (tabs, buttons, nav, etc.) */
.shiny::before,
.shiny::after{
  display: none !important;
  animation: none !important;
}

/* Extra safety: if any button uses ::after for splash, kill it */
button::after{
  display: none !important;
  animation: none !important;
}
/* ================= Employee Attendance – All Records column ================= */

/* Center the "All Records" (7th) column header + cells */
.emp-att-table thead th:nth-child(7),
.emp-att-table tbody td:nth-child(7) {
  text-align: center !important;
}

/* Center the eye pill inside the cell */
.emp-att-table tbody td:nth-child(7) > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Eye button – match list-style pill */
.emp-att-eye-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;

  background: #ffffff !important;
  
  padding: 0 !important;

  cursor: pointer;
  box-shadow: 0 6px 16px rgba(75, 57, 239, 0.25) !important;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.emp-att-eye-btn span {
  font-size: 16px !important;
  line-height: 1;
 
}

.emp-att-eye-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(75, 57, 239, 0.32);
  background: #f9fbff;
}

.emp-att-eye-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(75, 57, 239, 0.26);
}

/* Hide label under eye icon (no "All data" text) */
.emp-att-all-label {
  display: none !important;
}

/* ================= Modal IN / OUT chips – same style as table ================= */

.emp-att-modal-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 0;
  margin: 0;
}

/* First UL = IN times */
.emp-att-modal-body ul:nth-of-type(1) li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 40px;

  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.55);
  color: #059669;

  box-shadow: 0 1px 3px rgba(15,23,42,0.12);
  animation: empAttChipIn 0.35s ease-out;
}

/* Second UL = OUT times */
.emp-att-modal-body ul:nth-of-type(2) li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 40px;

  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.55);
  color: #dc2626;

  box-shadow: 0 1px 3px rgba(15,23,42,0.12);
  animation: empAttChipIn 0.35s ease-out; /* reuse same pop-in */
}
/* ================= Eye icon – match reference ================= */
.emp-att-eye-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;        /* rounded square, not circle */

  background: #F9FBFF !important;        /* very light blue bg */
 

  padding: 0 !important;
  cursor: pointer;

  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.06) !important; /* subtle double-outline */
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.emp-att-eye-btn span {
  font-size: 14px !important;
  line-height: 1;
              /* blue eye icon */
}

/* slight lift on hover */
.emp-att-eye-btn:hover {
  background: #EFF4FF !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12) !important;
  transform: translateY(-1px);
}

.emp-att-eye-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18) !important;
}
/* Remove border from eye button */
.emp-att-eye-btn {
  border: none !important;
  box-shadow: none !important;   /* remove the thin outline too */
  background: transparent !important;
}
/* Increase eye button size */
.emp-att-eye-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important; /* keeps the rounded-square shape scaled */
}

.emp-att-eye-btn span {
  font-size: 20px !important;    /* slightly bigger eye icon */
}
/* Center "All Records" header + cells */
.emp-att-table th:last-child,
.emp-att-table td:last-child {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Center the eye-block itself */
.emp-att-table td:last-child > div {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Just in case any button styles push it left */
.emp-att-eye-btn {
  display: inline-flex;
  margin-left: auto !important;
  margin-right: auto !important;
}
