/* Styles handled by Tailwind CSS */

.swal-modern-popup {
  border-radius: 28px !important;
  padding: 0 !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22) !important;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
}

.swal-modern-popup .swal2-html-container {
  margin: 0 !important;
  padding: 28px 26px 12px !important;
}

.swal-modern-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.swal-modern-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(15, 23, 42, 0.12);
}

.swal-modern-icon svg {
  width: 24px;
  height: 24px;
}

.swal-modern-hero-warning .swal-modern-icon {
  color: #b45309;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.swal-modern-hero-error .swal-modern-icon {
  color: #b91c1c;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.swal-modern-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.swal-modern-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.swal-modern-message {
  font-size: 1rem;
  line-height: 1.6;
  color: #0f172a;
  font-weight: 600;
}

.swal-modern-popup .swal2-actions {
  margin: 0 !important;
  padding: 0 26px 26px !important;
  gap: 10px;
}

.swal-modern-confirm {
  border: 0 !important;
  border-radius: 14px !important;
  padding: 0.8rem 1.35rem !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.swal-modern-confirm:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.34) !important;
}

.swal-modern-confirm:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 12px 24px rgba(37, 99, 235, 0.28) !important;
}

.swal-modern-show {
  animation: swalModernIn 0.2s ease-out;
}

.swal-modern-hide {
  animation: swalModernOut 0.15s ease-in forwards;
}

.swal-modern-popup-warning .swal-modern-confirm {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28) !important;
}

.swal-modern-popup-warning .swal-modern-confirm:hover {
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.34) !important;
}

.swal-modern-popup-error .swal-modern-confirm {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28) !important;
}

.swal-modern-popup-error .swal-modern-confirm:hover {
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.34) !important;
}

@keyframes swalModernIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes swalModernOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.status-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 299px) {
  .status-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.status-hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.status-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 58%);
  z-index: -1;
}

.status-hero-card::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  right: -48px;
  top: -56px;
  border-radius: 999px;
  opacity: 0.18;
  filter: blur(2px);
  z-index: -1;
}

.status-hero-checkin {
  border-color: #93c5fd !important;
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 52%, #ffffff 100%);
}

.status-hero-checkin::after {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.status-hero-location {
  border-color: #86efac !important;
  background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 50%, #ffffff 100%);
}

.status-hero-location::after {
  background: linear-gradient(135deg, #34d399, #16a34a);
}

#shortLeaveCard[data-state='out'] {
  border-color: #fdba74 !important;
  background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 52%, #ffffff 100%);
}

#shortLeaveCard[data-state='out']::after {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.status-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.status-hero-kicker {
  letter-spacing: 0.14em;
}

.status-hero-title {
  font-size: 0.8rem !important;
  line-height: 1.3;
}

.status-hero-meta {
  font-size: 0.72rem !important;
}

.status-hero-btn {
  border-radius: 0.9rem !important;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.status-hero-btn:disabled {
  box-shadow: none;
  opacity: 0.65;
}

.dark .status-hero-card {
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.45);
}

.dark .status-hero-checkin {
  border-color: #334155 !important;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.25) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(15, 23, 42, 0.94) 100%);
}

.dark .status-hero-location {
  border-color: #334155 !important;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.26) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(15, 23, 42, 0.94) 100%);
}

.dark #shortLeaveCard[data-state='out'] {
  border-color: #7c2d12 !important;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.24) 0%, rgba(30, 41, 59, 0.9) 48%, rgba(15, 23, 42, 0.95) 100%);
}

/* Dark mode only: improve readability of status hero cards */
.dark .status-hero-card::before {
  background: radial-gradient(circle at 8% 0%, rgba(148, 163, 184, 0.16), rgba(15, 23, 42, 0) 60%);
}

.dark .status-hero-card::after {
  opacity: 0.26;
}

.dark #checkInCard,
.dark #shortLeaveCard {
  border-color: #475569 !important;
}

.dark #checkInCard .status-hero-kicker,
.dark #shortLeaveCard .status-hero-kicker {
  color: #cbd5e1 !important;
}

.dark #checkInStatusText,
.dark #shortLeaveStatus,
.dark #checkInMetaText {
  color: #f8fafc !important;
  text-shadow: 0 1px 0 rgba(15, 23, 42, 0.45);
}

.dark #checkInCard .status-hero-icon,
.dark #shortLeaveCard .status-hero-icon {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.dark #shortLeaveCard[data-state='out'] #shortLeaveStatus,
.dark #shortLeaveCard[data-state='out'] .status-hero-kicker {
  color: #ffedd5 !important;
}

@media (max-width: 640px) {
  .status-hero-kicker {
    font-size: 0.6rem !important;
  }

  .status-hero-title {
    font-size: 0.75rem !important;
  }
}

/* iOS Safari: time input native appearance fix */
.work-hours-row input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #1f2937;
  min-height: 2.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  box-sizing: border-box;
}
.work-hours-row input[type="time"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}

/* Leave category badges and cards used in history/request screens */
.leave-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}

.leave-category-ucretli {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.leave-category-ucretsiz {
  background-color: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}

.leave-category-raporlu {
  background-color: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.leave-category-limit_alti {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.leave-card-tone {
  border-width: 1px;
  border-style: solid;
}

.leave-card-ucretli {
  border-color: #86efac !important;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.42) 0%, rgba(255, 255, 255, 0.96) 28%);
  box-shadow: inset 4px 0 0 #22c55e;
}

.leave-card-ucretsiz {
  border-color: #fdba74 !important;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.45) 0%, rgba(255, 255, 255, 0.96) 28%);
  box-shadow: inset 4px 0 0 #f97316;
}

.leave-card-raporlu {
  border-color: #7dd3fc !important;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.5) 0%, rgba(255, 255, 255, 0.96) 28%);
  box-shadow: inset 4px 0 0 #0ea5e9;
}

.leave-card-limit_alti {
  border-color: #fca5a5 !important;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.5) 0%, rgba(255, 255, 255, 0.96) 28%);
  box-shadow: inset 4px 0 0 #ef4444;
}

.dark .leave-category-ucretli { background-color: rgba(34, 197, 94, 0.18); color: #86efac; border-color: rgba(134, 239, 172, 0.35); }
.dark .leave-category-ucretsiz { background-color: rgba(249, 115, 22, 0.18); color: #fdba74; border-color: rgba(253, 186, 116, 0.35); }
.dark .leave-category-raporlu { background-color: rgba(14, 165, 233, 0.18); color: #7dd3fc; border-color: rgba(125, 211, 252, 0.35); }
.dark .leave-category-limit_alti { background-color: rgba(239, 68, 68, 0.18); color: #fca5a5; border-color: rgba(252, 165, 165, 0.35); }

.dark .leave-card-ucretli { border-color: rgba(34, 197, 94, 0.45) !important; background: linear-gradient(180deg, rgba(34, 197, 94, 0.12) 0%, rgba(30, 41, 59, 0.92) 30%); box-shadow: inset 4px 0 0 #22c55e; }
.dark .leave-card-ucretsiz { border-color: rgba(249, 115, 22, 0.45) !important; background: linear-gradient(180deg, rgba(249, 115, 22, 0.13) 0%, rgba(30, 41, 59, 0.92) 30%); box-shadow: inset 4px 0 0 #f97316; }
.dark .leave-card-raporlu { border-color: rgba(14, 165, 233, 0.45) !important; background: linear-gradient(180deg, rgba(14, 165, 233, 0.14) 0%, rgba(30, 41, 59, 0.92) 30%); box-shadow: inset 4px 0 0 #0ea5e9; }
.dark .leave-card-limit_alti { border-color: rgba(239, 68, 68, 0.45) !important; background: linear-gradient(180deg, rgba(239, 68, 68, 0.14) 0%, rgba(30, 41, 59, 0.92) 30%); box-shadow: inset 4px 0 0 #ef4444; }

/* Dark mode readability fixes for personnel screens */
.dark #shortLeaveCard.bg-green-50 {
  background-color: #1f2937;
  border-color: #334155;
}

.dark #shortLeaveCard.bg-orange-50 {
  background-color: #3f3325;
  border-color: #6b4f2c;
}

.dark #shortLeaveTimer {
  background-color: rgba(15, 23, 42, 0.9);
  color: #f59e0b;
}

.dark #personnelBalance .grid.grid-cols-2.lg\:grid-cols-4 > div {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

.dark #personnelBalance .grid.grid-cols-2.lg\:grid-cols-4 > div p {
  color: #e2e8f0 !important;
}

.dark #personnelBalance > div > .bg-white,
.dark #personnelBalance .bg-white.rounded-3xl {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

.dark #personnelBalance h3,
.dark #personnelBalance h4,
.dark #personnelBalance #pDetailHireDate,
.dark #personnelBalance #pDetailWorkDuration,
.dark #personnelBalance #pDetailEntitlementInline {
  color: #e2e8f0 !important;
}

.dark #personnelBalance #pLeaveHistory .from-primary-50\/70,
.dark #personnelBalance #pLeaveHistory .from-amber-50\/70 {
  --tw-gradient-from: rgba(30, 41, 59, 0.85) var(--tw-gradient-from-position) !important;
}

.dark #personnelBalance #pLeaveHistory .to-white {
  --tw-gradient-to: rgba(15, 23, 42, 0.9) var(--tw-gradient-to-position) !important;
}

.dark #personnelBalance #pLeaveHistory thead,
.dark #personnelBalance #pLeaveHistory tbody tr {
  background-color: transparent !important;
}

.dark #personnelBalance #pLeaveHistory th,
.dark #personnelBalance #pLeaveHistory td {
  color: #cbd5e1 !important;
}

.dark #pHistoryDailyCards > div,
.dark #pHistoryHourlyCards > div {
  background-color: rgba(15, 23, 42, 0.85) !important;
  border-color: #334155 !important;
}

.dark #personnelCalendarGrid > div,
.dark #adminCalendarGrid > div {
  border-color: #334155 !important;
}

.dark #personnelCalendarGrid > div.bg-white,
.dark #adminCalendarGrid > div.bg-white {
  background-color: #1e293b !important;
}

.dark #personnelCalendarGrid > div.bg-red-50,
.dark #adminCalendarGrid > div.bg-red-50 {
  background-color: rgba(153, 27, 27, 0.25) !important;
}

.dark #personnelCalendarGrid > div.bg-purple-50,
.dark #adminCalendarGrid > div.bg-purple-50 {
  background-color: rgba(107, 33, 168, 0.25) !important;
}

.dark #personnelCalendarGrid > div.bg-primary-50,
.dark #adminCalendarGrid > div.bg-primary-50 {
  background-color: rgba(30, 58, 138, 0.28) !important;
}

.dark #personnelCalendarGrid > div:hover,
.dark #adminCalendarGrid > div:hover {
  background-color: #334155 !important;
}

/* Dark mode readability fixes for personnel my requests */
.dark #personnelMyRequests > .mb-6 > h2 {
  color: #f8fafc !important;
}

.dark #personnelMyRequests > .mb-6 > p {
  color: #94a3b8 !important;
}

.dark #myRequestsList > .space-y-5 > div.rounded-2xl {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

.dark #myRequestsList > .space-y-5 > div.rounded-2xl > .px-4,
.dark #myRequestsList > .space-y-5 > div.rounded-2xl > .px-5 {
  border-color: #334155 !important;
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.75) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
}

.dark #myRequestsList h3.text-gray-800 {
  color: #f1f5f9 !important;
}

.dark #myRequestsList p.text-gray-500,
.dark #myRequestsList p.text-gray-400 {
  color: #94a3b8 !important;
}

.dark #myRequestsList span.bg-slate-100.text-slate-700 {
  background-color: #334155 !important;
  color: #e2e8f0 !important;
}

.dark #myRequestsList .card-hover.bg-white,
.dark #myRequestsList .card-hover {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}

.dark #myRequestsList .card-hover p.text-gray-800 {
  color: #f8fafc !important;
}

.dark #myRequestsList .rounded-xl.border-dashed {
  background-color: rgba(15, 23, 42, 0.75) !important;
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}

