.flashcard {
  position: relative !important;
}
.flashcard .col_wrap {
  position: relative !important;
}
.flashcard .con_title {
  position: relative !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.flashcard .payroll-health {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  margin-top: 0px !important;
}
.flashcard .payroll-health li {
  float: left;
  width: 15px;
  height: 15px;
  background-color: #3F6;
  border-radius: 10px;
  margin-right: 5px;
  background-color: #dadada
}
/* Payroll Deadline Card Styles - Full Overlay Design */
.payroll-deadline-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #192b5d 0%, #17295a 50%, #ee1954 100%);
  color: white;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(26, 35, 126, 0.4);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.8) rotateX(15deg);
  transform-style: preserve-3d;
  perspective: 1000px;
}
/* Sliding background animation - left to right */
.payroll-deadline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.3) 0%, transparent 60%), radial-gradient(circle at 80% 80%, rgba(255, 64, 129, 0.25) 0%, transparent 60%), radial-gradient(circle at 40% 20%, rgba(0, 255, 255, 0.2) 0%, transparent 60%);
  animation: slideFromLeft 8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes slideFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0.3;
  }
  25% {
    transform: translateX(-50%);
    opacity: 0.7;
  }
  50% {
    transform: translateX(0%);
    opacity: 0.6;
  }
  75% {
    transform: translateX(50%);
    opacity: 0.7;
  }
  100% {
    transform: translateX(100%);
    opacity: 0.3;
  }
}
/* Sliding particles animation - left to right */
.payroll-deadline-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.4), transparent), radial-gradient(2px 2px at 60% 70%, rgba(255, 215, 0, 0.3), transparent), radial-gradient(1px 1px at 50% 50%, rgba(0, 255, 255, 0.3), transparent), radial-gradient(2px 2px at 80% 10%, rgba(255, 64, 129, 0.3), transparent);
  background-size: 150px 150px, 200px 200px, 180px 180px, 160px 160px;
  animation: slideParticles 10s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes slideParticles {
  0% {
    transform: translateX(-200px);
    opacity: 0.4;
  }
  25% {
    transform: translateX(-100px);
    opacity: 0.5;
  }
  50% {
    transform: translateX(0px);
    opacity: 0.6;
  }
  75% {
    transform: translateX(100px);
    opacity: 0.5;
  }
  100% {
    transform: translateX(200px);
    opacity: 0.3;
  }
}
/* Reduced pulsing glow effect */
.payroll-deadline-card .glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulsingGlow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulsingGlow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}
/* Sophisticated entry animation */
.payroll-deadline-card.show {
  animation: sophisticatedEntry 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes sophisticatedEntry {
  0% {
    opacity: 0;
    transform: scale(0.7) rotateX(15deg) translateY(30px);
    filter: blur(5px);
  }
  30% {
    opacity: 0.8;
    transform: scale(1.05) rotateX(0deg) translateY(-5px);
    filter: blur(0px);
  }
  60% {
    opacity: 1;
    transform: scale(0.98) rotateX(0deg) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateX(0deg) translateY(0);
    filter: blur(0px);
  }
}
/* Smooth exit animation */
.payroll-deadline-card.fade-out {
  animation: elegantExit 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}
@keyframes elegantExit {
  0% {
    opacity: 1;
    transform: scale(1) rotateX(0deg) translateY(0);
    filter: blur(0px);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05) rotateX(-5deg) translateY(-10px);
    filter: blur(2px);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) rotateX(15deg) translateY(30px);
    filter: blur(5px);
  }
}
/* Quick entry for pin click - no double animation */
.payroll-deadline-card.quick-show {
  animation: quickEntry 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes quickEntry {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.payroll-deadline-header {
  padding: 12px 15px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.payroll-deadline-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  align-items: center;
  animation: slideInLeft 0.8s ease-out 0.3s both;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.payroll-deadline-header h2 i {
  margin-right: 10px;
  margin-top: -4px;
  animation: iconPulse 2s ease-in-out infinite;
  width: 20px;
}
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    color: #64B5F6;
  }
  50% {
    transform: scale(1.1);
    color: #90CAF9;
  }
}
.payroll-deadline-content {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100% - 50px);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(3px);
  border-radius: 5px;
  margin-bottom: 20px;
}
/* Custom scrollbar */
.payroll-deadline-content::-webkit-scrollbar {
  width: 6px;
}
.payroll-deadline-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.payroll-deadline-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  transition: background 0.3s ease;
}
.payroll-deadline-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
.zx-payroll-info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}
.zx-payroll-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
  transition: all .25s ease;
}
.zx-payroll-item:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.15);
}
.zx-payroll-maintitle {
  font-size: 15px;
  font-weight: bold;
  color: #cfd3ff;
  text-align: center;
}
.zx-payroll-title {
  font-size: 13px;
  font-weight: 600;
  color: #cfd3ff;
}
.zx-payroll-sub {
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
}
.zx-payroll-value {
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
}
.pin-icon {
  color: white;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.85;
  position: absolute;
  right: 110px;
  top: 16px;
  width: 14px;
  transform: translateY(-50%) scale(1);
  animation: pinPulse 1.6s ease-in-out infinite;
}
@keyframes pinPulse {
  0% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.18);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}
.pin-icon:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}
.pin-icon.pinned {
  color: #FFD54F;
  opacity: 1;
  animation: pinBounce 2s ease-in-out infinite;
}
@keyframes pinBounce {
  0%, 100% {
    transform: translateY(-50%);
    filter: drop-shadow(0 0 3px rgba(255, 213, 79, 0.5));
  }
  50% {
    transform: translateY(-55%);
    filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.8));
  }
}
.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  animation: slideInRight 0.8s ease-out 0.5s both;
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}
.decorative-element {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, -10px);
  }
}
.decorative-element-2 {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  animation: float 8s ease-in-out infinite reverse;
}
.dl-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 5px
}
.dl-time i {
  margin-top: -2px;
  color: #fcd34d;
  width: 11px;
}
.dl-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.badge-urgent {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: 1px solid #32388a;
  float: right
}
.badge-soon {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  border: 1px solid #32388a;
  float: right
}
.badge-ok {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  border: 1px solid #32388a;
  float: right
}
.payroll_h_refresh_btn {
  position: absolute;
  cursor: pointer;
  right: 72px !important;
  top: 5px !important;
}