/* =======================
   GLOBAL FONT STYLING
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #0088cc 0%, #0088cc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    color: #1e293b;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .main-title {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 28px;
    color: #0088cc;
    margin-bottom: 5px;
  }

  .sub-title,
  .university-name {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
  }

  .sub-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
  }

  .university-name {
    font-size: 12px;
    color: #6b7280;
  }

  /* =======================
   BACKGROUND & SHAPES
======================= */
  .background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 136, 204, 0.6) 0%,
        rgba(0, 90, 153, 0.6) 25%,
        rgba(0, 61, 107, 0.6) 50%,
        rgba(0, 136, 204, 0.6) 75%,
        rgba(0, 163, 224, 0.6) 100%
      ),
      url("../images/bg.jpg");
    background-size: 400% 400%, cover;
    background-position: 0% 50%, center;
    background-repeat: no-repeat, no-repeat;
    animation: gradientShift 15s ease infinite;
    z-index: -10;
    overflow: hidden;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* =======================
   NOTIFLIX INTEGRATION
======================= */
/* Notiflix styling akan diambil dari notiflix.css */

/* =======================
   LOADING OVERLAY
======================= */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.loading-spinner i {
  font-size: 32px;
  color: #0088cc;
  margin-bottom: 16px;
}

.loading-spinner p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =======================
   CONTROL BUTTONS
======================= */
.control-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.control-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn i {
  font-size: 18px;
  color: #333;
}

/* =======================
   RIPPLE EFFECT
======================= */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =======================
   LOGIN BOX
======================= */
.login-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  transition: all 0.3s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.logo {
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =======================
   FORM SYSTEM
======================= */
.form-views {
  position: relative;
  overflow: hidden;
}

.view {
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-view {
  display: block;
  transform: translateX(0);
}

/* Transitioning states */
.login-box.transitioning {
  position: relative;
}

.login-box.transitioning .view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.login-box.transitioning .login-view {
  display: block;
}

/* Slide animations */
.login-view.slide-out-left {
  transform: translateX(-100%);
}

.input-group {
  margin-bottom: 16px;
}

/* =======================
   RESET INFO BOX
======================= */

/* =======================
   PASSWORD RESET INFO BOX
======================= */

.input-field {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  padding: 0 12px;
  transition: all 0.3s ease;
}

.input-field i {
  color: #94a3b8;
  margin-right: 10px;
}

.input-field input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  outline: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.input-field input::placeholder {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.input-field:focus-within {
  border-color: #0088cc;
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

label {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* =======================
   ADVANCED CAPTCHA SYSTEM
======================= */
.captcha-container {
  margin: 20px 0;
  padding: 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slide-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.captcha-container.entering {
  opacity: 0;
  transform: translateY(20px);
}

.captcha-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0088cc, #8b5cf6, #ef4444, #10b981);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: border-flow 4s ease-in-out infinite;
}

.captcha-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.captcha-container:hover::before {
  opacity: 1;
}

.captcha-container.verified {
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2),
    0 2px 8px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: float-captcha 2s ease-in-out infinite;
}

.captcha-container.verified::before {
  background: linear-gradient(90deg, #10b981, #059669);
  opacity: 1;
}

.captcha-container.error {
  background: linear-gradient(145deg, #fef2f2, #fee2e2);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2),
    0 2px 8px rgba(239, 68, 68, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: shake 0.5s ease-in-out;
}

.captcha-container.error::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  opacity: 1;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  color: #1f2937;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.captcha-question i {
  color: #0088cc;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 136, 204, 0.2);
}

.captcha-refresh,
.btn.captcha-refresh {
  background: linear-gradient(145deg, #0088cc, #0088cc) !important;
  color: white !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0, 136, 204, 0.3),
    0 1px 3px rgba(0, 136, 204, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  font-size: inherit !important;
}

.captcha-refresh::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.captcha-refresh:hover,
.btn.captcha-refresh:hover {
  background: linear-gradient(145deg, #0088cc, #0088cc) !important;
  transform: rotate(180deg) translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4),
    0 3px 6px rgba(0, 136, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(0, 136, 204, 0.2) !important;
}

.captcha-refresh:hover::before {
  width: 80px;
  height: 80px;
}

.captcha-refresh:active,
.btn.captcha-refresh:active {
  transform: rotate(180deg) scale(0.95) translateY(-1px) !important;
  transition: transform 0.1s ease !important;
}

.captcha-refresh:disabled,
.btn.captcha-refresh:disabled {
  background: linear-gradient(145deg, #9ca3af, #6b7280) !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

.captcha-refresh:disabled:hover,
.btn.captcha-refresh:disabled:hover {
  transform: none !important;
  background: linear-gradient(145deg, #9ca3af, #6b7280) !important;
  box-shadow: 0 3px 12px rgba(156, 163, 175, 0.3),
    0 1px 3px rgba(156, 163, 175, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.captcha-refresh:disabled i {
  color: #d1d5db;
}

.captcha-refresh i {
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.captcha-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-option {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid #e2e8f0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #374151;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.captcha-option::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 136, 204, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.captcha-option:hover {
  border-color: #0088cc;
  background: linear-gradient(145deg, #e6f3ff, #cce7ff);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.2),
    0 2px 4px rgba(0, 136, 204, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 15px rgba(0, 136, 204, 0.1);
  color: #0088cc;
}

.captcha-option:hover::before {
  width: 60px;
  height: 60px;
}

.captcha-option:active,
.captcha-refresh:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.captcha-option.selected {
  border-color: #0088cc;
  background: linear-gradient(145deg, #cce7ff, #99d6ff);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3),
    0 2px 6px rgba(0, 136, 204, 0.2);
  color: #0088cc;
  animation: pulse-selected 0.6s ease;
  position: relative;
  overflow: visible;
}

.captcha-option.selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 136, 204, 0.6) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: particle-burst 0.6s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}

.captcha-option.correct {
  border-color: #10b981;
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
  color: #065f46;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4),
    0 3px 8px rgba(16, 185, 129, 0.3);
  animation: success-bounce 0.8s ease;
}

.captcha-option.incorrect {
  border-color: #ef4444;
  background: linear-gradient(145deg, #fee2e2, #fecaca);
  color: #991b1b;
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  animation: error-shake 0.5s ease;
}

.captcha-option:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.captcha-option:focus,
.captcha-refresh:focus {
  outline: 2px solid #0088cc;
  outline-offset: 2px;
}

/* =======================
   CAPTCHA ANIMATIONS
======================= */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes pulse-selected {
  0% {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
  }
  50% {
    box-shadow: 0 8px 28px rgba(0, 136, 204, 0.5);
  }
  100% {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
  }
}

@keyframes success-bounce {
  0%,
  100% {
    transform: translateY(-3px) scale(1.05);
  }
  50% {
    transform: translateY(-6px) scale(1.08);
  }
}

@keyframes error-shake {
  0%,
  100% {
    transform: translateX(0) scale(0.95);
  }
  25% {
    transform: translateX(-3px) scale(0.95);
  }
  75% {
    transform: translateX(3px) scale(0.95);
  }
}

@keyframes float-captcha {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes particle-burst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

@keyframes border-flow {
  0%,
  100% {
    background: linear-gradient(90deg, #0088cc, #8b5cf6, #ef4444, #10b981);
  }
  25% {
    background: linear-gradient(90deg, #8b5cf6, #ef4444, #10b981, #0088cc);
  }
  50% {
    background: linear-gradient(90deg, #ef4444, #10b981, #0088cc, #8b5cf6);
  }
  75% {
    background: linear-gradient(90deg, #10b981, #0088cc, #8b5cf6, #ef4444);
  }
}

@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   BUTTON SYSTEM
======================= */
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.login-btn {
  flex: 1;
  background: linear-gradient(145deg, #0088cc, #0088cc);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(0, 136, 204, 0.3),
    0 1px 3px rgba(0, 136, 204, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4),
    0 3px 6px rgba(0, 136, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-btn:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.login-btn:disabled {
  background: linear-gradient(145deg, #9ca3af, #6b7280);
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-btn {
  flex: 1;
  background: linear-gradient(145deg, #10b981, #059669);
  color: white;
  border: 2px solid #10b981;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3),
    0 1px 3px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.download-btn:hover {
  background: linear-gradient(145deg, #34d399, #10b981);
  border-color: #34d399;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4),
    0 3px 6px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.download-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* =======================
   FOOTER
======================= */
.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
}

/* =======================
   DARK THEME
======================= */
[data-theme="dark"] .background {
  background: linear-gradient(
      135deg,
      rgba(26, 26, 46, 0.7) 0%,
      rgba(22, 33, 62, 0.7) 25%,
      rgba(15, 52, 96, 0.7) 50%,
      rgba(26, 26, 46, 0.7) 75%,
      rgba(45, 55, 72, 0.7) 100%
    ),
    url("../images/bg.jpg");
  background-size: 400% 400%, cover;
  background-position: 0% 50%, center;
  background-repeat: no-repeat, no-repeat;
  animation: gradientShift 15s ease infinite;
  filter: brightness(0.7) contrast(1.1);
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0088cc 100%);
  color: #e5e7eb;
}

[data-theme="dark"] .control-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

[data-theme="dark"] .control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .control-btn i {
  color: white;
}

[data-theme="dark"] .loading-spinner {
  background: #1f2937;
  color: white;
}

[data-theme="dark"] .login-box {
  background: rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .input-field {
  background: rgba(255, 255, 255, 0.05);
  border-color: #374151;
}

[data-theme="dark"] .input-field input {
  color: #f1f5f9;
}

[data-theme="dark"] .captcha-container {
  background: linear-gradient(145deg, #1f2937, #111827);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .captcha-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .captcha-container.verified {
  background: linear-gradient(145deg, #064e3b, #042f2e);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3),
    0 2px 8px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .captcha-container.error {
  background: linear-gradient(145deg, #7f1d1d, #5f1c1c);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3),
    0 2px 8px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .captcha-question {
  color: #f9fafb;
}

[data-theme="dark"] .captcha-question i {
  color: #8b5cf6;
  text-shadow: 0 1px 2px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .captcha-refresh {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.4),
    0 1px 3px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .captcha-refresh:hover {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5),
    0 3px 6px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .captcha-option {
  background: linear-gradient(145deg, #374151, #1f2937);
  border-color: #4b5563;
  color: #f9fafb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .captcha-option::before {
  background: rgba(0, 136, 204, 0.2);
}

[data-theme="dark"] .captcha-option:hover {
  border-color: #0088cc;
  background: linear-gradient(145deg, #0088cc, #0088cc);
  color: #0088cc;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3),
    0 2px 6px rgba(0, 136, 204, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .captcha-option.selected {
  border-color: #f59e0b;
  background: linear-gradient(145deg, #92400e, #78350f);
  color: #fed7aa;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4),
    0 3px 8px rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .captcha-option.correct {
  border-color: #10b981;
  background: linear-gradient(145deg, #064e3b, #065f46);
  color: #a7f3d0;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5),
    0 3px 8px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .captcha-option.incorrect {
  border-color: #ef4444;
  background: linear-gradient(145deg, #7f1d1d, #991b1b);
  color: #fca5a5;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

[data-theme="dark"] .captcha-option:focus,
[data-theme="dark"] .captcha-refresh:focus {
  outline-color: #8b5cf6;
}

[data-theme="dark"] .login-btn {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4),
    0 2px 4px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .login-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5),
    0 3px 6px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .download-btn {
  background: linear-gradient(145deg, #065f46, #064e3b);
  border-color: #065f46;
  color: white;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3),
    0 1px 3px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .download-btn:hover {
  background: linear-gradient(145deg, #10b981, #059669);
  border-color: #10b981;
  color: white;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4),
    0 3px 6px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* =======================
   RESPONSIVE DESIGN
======================= */
@media (max-width: 768px) {
  .login-box {
    padding: 25px 20px;
  }

  .main-title {
    font-size: 26px;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
  }

  .main-title:hover {
    transform: translateY(-1px) scale(1.03) rotateX(5deg);
  }

  .logo {
    width: 220px;
  }

  .button-group {
    flex-direction: column;
    gap: 10px;
  }

  .login-btn,
  .download-btn {
    padding: 8px 12px;
    font-size: 13px;
    gap: 4px;
  }

  .captcha-container {
    padding: 16px;
    border-radius: 12px;
  }

  .captcha-option,
  .captcha-refresh {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .captcha-option {
    font-size: 12px;
  }

  .captcha-refresh i {
    font-size: 12px;
  }
}

/* =======================
   CUSTOM FRAMEWORK OVERRIDES
======================= */
/* Override untuk btn class dari custom framework */
.btn.btn-outline-secondary.captcha-option {
  background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
  border: 2px solid #e2e8f0 !important;
  padding: 8px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: 600 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 14px !important;
  color: #374151 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  position: relative;
  overflow: hidden;
  margin-right: 0.25rem !important;
  margin-bottom: 0.25rem !important;
  min-width: 40px !important;
}

.btn.btn-outline-secondary.captcha-option:hover {
  border-color: #0088cc !important;
  background: linear-gradient(145deg, #e6f3ff, #cce7ff) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.2),
    0 2px 4px rgba(0, 136, 204, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 15px rgba(0, 136, 204, 0.1) !important;
  color: #0088cc !important;
}

.btn.btn-primary.captcha-option {
  border-color: #0088cc !important;
  background: linear-gradient(145deg, #cce7ff, #99d6ff) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3),
    0 2px 6px rgba(0, 136, 204, 0.2) !important;
  color: #0088cc !important;
}

.btn.btn-success.captcha-option {
  border-color: #10b981 !important;
  background: linear-gradient(145deg, #d1fae5, #a7f3d0) !important;
  color: #065f46 !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4),
    0 3px 8px rgba(16, 185, 129, 0.3) !important;
}

.btn.btn-danger.captcha-option {
  border-color: #ef4444 !important;
  background: linear-gradient(145deg, #fee2e2, #fecaca) !important;
  color: #991b1b !important;
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.btn.captcha-option:disabled {
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
}

/* =======================
   ADDITIONAL STYLES FROM LOGIN.HTML
======================= */
/* Tambahan efek keren dan modern */
.captcha-container {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Floating animation untuk captcha container */
@keyframes float-captcha {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.captcha-container.verified {
  animation: float-captcha 2s ease-in-out infinite;
}

/* Glow effect saat hover */
.captcha-option:hover {
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.2),
    0 2px 4px rgba(0, 136, 204, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 15px rgba(0, 136, 204, 0.1);
}

.captcha-refresh:hover {
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4),
    0 3px 6px rgba(0, 136, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(0, 136, 204, 0.2);
}

/* Particle effect saat click */
.captcha-option.selected {
  position: relative;
  overflow: visible;
}

.captcha-option.selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 136, 204, 0.6) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: particle-burst 0.6s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}

/* Border gradient animation */
.captcha-container::before {
  animation: border-flow 4s ease-in-out infinite;
}

/* Smooth entrance animation */
.captcha-container {
  animation: slide-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 1;
  transform: translateY(0);
}

.captcha-container.entering {
  opacity: 0;
  transform: translateY(20px);
}

/* Button press effect */
.captcha-option:active,
.captcha-refresh:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.captcha-refresh:active {
  transform: rotate(180deg) scale(0.95) translateY(-1px);
}

/* Focus states untuk accessibility */
.captcha-option:focus,
.captcha-refresh:focus {
  outline: 2px solid #0088cc;
  outline-offset: 2px;
}

[data-theme="dark"] .captcha-option:focus,
[data-theme="dark"] .captcha-refresh:focus {
  outline-color: #8b5cf6;
}

/* Input Fields Font Styling */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="checkbox"] {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

input::placeholder {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

label {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Notiflix Toast styling - handled by notiflix.css */

/* Loading spinner text */
.loading-spinner p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =======================
   MOBILE TRANSITION OPTIMIZATIONS
======================= */
@media (max-width: 768px) {
  .form-views {
    min-height: 280px; /* Reduced for mobile */
  }

  .view {
    /* Faster transitions on mobile */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      opacity 0.25s ease;
  }

  .login-box.transitioning {
    /* Less aggressive scaling on mobile */
    transform: scale(0.99);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

/* iOS Safari transition optimizations */
@supports (-webkit-touch-callout: none) {
  .view {
    /* iOS Safari optimization */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }
}
/* =======================
   MODERN MODAL SYSTEM
======================= */
.modern-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  padding: 20px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-modal-overlay.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modern-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdropFadeIn 0.4s ease-out;
}

.modern-modal-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 95vh;
  z-index: 2001;
  animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
  width: 100%;
  position: relative;
}

.modern-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 136, 204, 0.5),
    transparent
  );
}

/* =======================
   MODERN MODAL HEADER
======================= */
.modern-modal-header {
  padding: 32px 32px 24px;
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.modern-modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>')
    repeat;
  opacity: 0.3;
  pointer-events: none;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.modal-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.modal-icon-wrapper i {
  font-size: 24px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.modal-subtitle {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.01em;
}

.modern-btn-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-btn-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modern-btn-close:active {
  transform: scale(0.95);
}

/* =======================
   MODERN MODAL BODY
======================= */
.modern-modal-body {
  padding: 0;
  max-height: calc(95vh - 200px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 136, 204, 0.3) transparent;
}

.modern-modal-body::-webkit-scrollbar {
  width: 6px;
}

.modern-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modern-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 136, 204, 0.3);
  border-radius: 3px;
}

.modern-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 136, 204, 0.5);
}

/* =======================
   MODERN MODAL FOOTER
======================= */
.modern-modal-footer {
  padding: 20px 32px 32px;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(229, 231, 235, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-actions {
  display: flex;
  gap: 12px;
}

.modern-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.modern-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.modern-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modern-btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-btn-secondary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timestamp {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  opacity: 0.8;
}

/* =======================
   MODAL CONTENT GRID SYSTEM
======================= */
.employee-profile-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(240, 249, 255, 0.8) 0%,
    rgba(224, 242, 254, 0.6) 100%
  );
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  gap: 16px;
}

.profile-avatar-section {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.profile-avatar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: inherit;
}

.status-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-indicator.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.status-indicator.inactive {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.profile-nip {
  margin: 0 0 8px 0;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
  font-family: "Courier New", monospace;
  letter-spacing: 0.5px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modern-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.modern-badge-success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(22, 163, 74, 0.1)
  );
  color: #166534;
  border-color: rgba(34, 197, 94, 0.2);
}

.modern-badge-danger {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15),
    rgba(220, 38, 38, 0.1)
  );
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.2);
}

.modern-badge-info {
  background: linear-gradient(
    135deg,
    rgba(0, 136, 204, 0.15),
    rgba(0, 102, 170, 0.1)
  );
  color: #0088cc;
  border-color: rgba(0, 136, 204, 0.2);
}

.modern-badge-primary {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.15),
    rgba(29, 78, 216, 0.1)
  );
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.2);
}

/* Tab Navigation */
.modern-tab-nav {
  display: flex;
  padding: 0 32px;
  gap: 4px;
  background: rgba(249, 250, 251, 0.5);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modern-tab-nav::-webkit-scrollbar {
  display: none;
}

.modern-tab-btn {
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 12px 12px 0 0;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.modern-tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0088cc, #0066aa);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-tab-btn:hover {
  color: #0088cc;
  background: rgba(0, 136, 204, 0.05);
}

.modern-tab-btn.active {
  color: #ffffff;
  font-weight: 600;
  background: #0088cc;
  border-radius: 12px;
}

.modern-tab-btn.active::after {
  width: 0;
}

/* Tab Content */
.modern-tab-content {
  padding: 32px;
}

.modern-tab-pane {
  display: none;
  animation: fadeInUp 0.4s ease-out;
}

.modern-tab-pane.active {
  display: block;
}

/* Information Cards Grid */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.info-cards-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.modern-info-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modern-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0088cc, #0066aa);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.modern-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modern-info-card:hover::before {
  transform: scaleY(1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.card-icon-primary {
  background: linear-gradient(135deg, #0088cc, #0066aa);
}
.card-icon-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.card-icon-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.card-icon-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.card-icon-info {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.card-icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.card-icon-pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.card-content-wrapper {
  flex: 1;
  min-width: 0;
}

.card-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

.card-value {
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
  word-break: break-word;
  margin: 0;
}

.card-value a {
  color: #0088cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-value a:hover {
  color: #0066aa;
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3af;
}

.empty-state i {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

/* Loading Placeholder */
.loading-placeholder {
  padding: 32px;
}

.placeholder-shimmer {
  animation: shimmer 1.5s infinite;
}

.shimmer-line {
  height: 16px;
  background: linear-gradient(
    90deg,
    rgba(229, 231, 235, 0.4) 25%,
    rgba(209, 213, 219, 0.4) 50%,
    rgba(229, 231, 235, 0.4) 75%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  animation: shimmerMove 1.5s infinite;
}

.shimmer-line.short {
  width: 60%;
}

/* Modal Animations */
@keyframes backdropFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmerMove {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* =======================
   RESPONSIVE DESIGN FOR MODAL
======================= */
@media (max-width: 1024px) {
  .modern-modal-container {
    max-width: 95vw;
  }

  .modern-modal-header {
    padding: 24px 24px 20px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modern-tab-content {
    padding: 24px;
  }

  .employee-profile-header {
    padding: 24px;
  }

  .info-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .modern-modal-overlay {
    padding: 12px;
  }

  .modern-modal-container {
    max-width: 100%;
    max-height: 100vh;
  }

  .modern-modal-content {
    border-radius: 16px;
  }

  .modern-modal-header {
    padding: 20px 20px 16px;
  }

  .modal-header-left {
    gap: 16px;
  }

  .modal-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .modal-icon-wrapper i {
    font-size: 20px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-subtitle {
    font-size: 0.85rem;
  }

  .employee-profile-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    font-size: 2rem;
  }

  .status-indicator {
    width: 20px;
    height: 20px;
    border-width: 3px;
  }

  .profile-name {
    font-size: 0.9rem;
  }

  .profile-nip {
    font-size: 0.9rem;
  }

  .modern-tab-nav {
    padding: 0 20px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modern-tab-btn {
    padding: 10px 12px;
    font-size: 13px;
    gap: 6px;
    min-width: fit-content;
    flex-shrink: 0;
  }

  .modern-tab-content {
    padding: 20px;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-cards-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modern-info-card {
    padding: 16px;
    border-radius: 12px;
  }

  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-value {
    font-size: 15px;
  }

  .modern-modal-footer {
    padding: 16px 20px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .footer-actions {
    width: 100%;
  }

  .modern-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .modern-modal-overlay {
    padding: 8px;
  }

  .modern-modal-header {
    padding: 16px 16px 12px;
  }

  .modal-header-left {
    gap: 12px;
  }

  .modal-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .modal-icon-wrapper i {
    font-size: 18px;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modern-btn-close {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .employee-profile-header {
    padding: 16px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    font-size: 1.8rem;
  }

  .profile-name {
    font-size: 0.85rem;
  }

  .modern-tab-nav {
    padding: 0 16px;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .modern-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .modern-tab-btn {
    padding: 8px 10px;
    font-size: 12px;
    gap: 4px;
    min-width: fit-content;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .modern-tab-btn.active {
    border-radius: 8px;
  }

  .modern-tab-content {
    padding: 16px;
  }

  .modern-info-card {
    padding: 14px;
  }
}

/* =======================
   DARK THEME FOR MODERN MODAL
======================= */
[data-theme="dark"] .modern-modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .modern-modal-content {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modern-modal-content::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.5),
    transparent
  );
}

[data-theme="dark"] .modern-modal-header {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

[data-theme="dark"] .employee-profile-header {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.8) 0%,
    rgba(15, 23, 42, 0.6) 100%
  );
  border-bottom-color: rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .profile-name {
  color: #f8fafc;
}

[data-theme="dark"] .profile-nip {
  color: #94a3b8;
}

[data-theme="dark"] .modern-badge-success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2),
    rgba(22, 163, 74, 0.15)
  );
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .modern-badge-danger {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2),
    rgba(220, 38, 38, 0.15)
  );
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .modern-badge-info {
  background: linear-gradient(
    135deg,
    rgba(0, 136, 204, 0.2),
    rgba(0, 102, 170, 0.15)
  );
  color: #7dd3fc;
  border-color: rgba(0, 136, 204, 0.3);
}

[data-theme="dark"] .modern-badge-primary {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.2),
    rgba(29, 78, 216, 0.15)
  );
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .modern-tab-nav {
  background: rgba(30, 41, 59, 0.5);
  border-bottom-color: rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .modern-tab-btn {
  color: #94a3b8;
}

[data-theme="dark"] .modern-tab-btn:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .modern-tab-btn.active {
  color: #ffffff;
  background: #0088cc;
  border-radius: 12px;
}

[data-theme="dark"] .modern-tab-btn::after {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

[data-theme="dark"] .modern-tab-btn.active::after {
  width: 0;
}

[data-theme="dark"] .modern-info-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(75, 85, 99, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modern-info-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .modern-info-card::before {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

[data-theme="dark"] .card-title {
  color: #d1d5db;
}

[data-theme="dark"] .card-value {
  color: #f8fafc;
}

[data-theme="dark"] .card-value a {
  color: #60a5fa;
}

[data-theme="dark"] .card-value a:hover {
  color: #93c5fd;
}

[data-theme="dark"] .modern-modal-footer {
  background: rgba(15, 23, 42, 0.8);
  border-top-color: rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .timestamp {
  color: #94a3b8;
}

[data-theme="dark"] .empty-state {
  color: #6b7280;
}

[data-theme="dark"] .shimmer-line {
  background: linear-gradient(
    90deg,
    rgba(75, 85, 99, 0.4) 25%,
    rgba(100, 116, 139, 0.4) 50%,
    rgba(75, 85, 99, 0.4) 75%
  );
}

/* Employee Modal Styling */
.employee-header {
  display: flex;
  align-items: center;
  padding: 2rem;
  background: #f0f9ff;
  border-bottom: 1px solid #e5e7eb;
}

.employee-avatar {
  position: relative;
  margin-right: 1.5rem;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.avatar-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
}

.avatar-status.active {
  background-color: #22c55e;
}

.avatar-status.inactive {
  background-color: #ef4444;
}

.employee-basic-info h2 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.5rem;
}

.employee-basic-info p {
  margin: 0 0 1rem 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.employee-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}
.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}
.badge-info {
  background-color: #dbeafe;
  color: #0088cc;
}
.badge-primary {
  background-color: #e0f2ff;
  color: #0088cc;
}

.modal-tabs {
  padding: 1.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  color: #6b7280;
  font-weight: 500;
  transition: all 0.2s;
}

.tab-btn.active {
  background-color: #0088cc;
  color: white;
}

.tab-content .tab-pane {
  display: none;
}

.tab-content .tab-pane.active {
  display: block;
}

.employee-fields {
  display: grid;
  gap: 1rem;
}

.employee-field {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #0088cc;
  margin-bottom: 0.5rem;
}

.field-icon {
  margin-right: 1rem;
  color: #0088cc;
  font-size: 1.2rem;
}

.field-content {
  flex: 1;
}

.field-content .label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.field-content .value {
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* CSS Captcha sama dengan SIMAK */
.captcha-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-option {
  background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
  border: 2px solid #e2e8f0 !important;
  padding: 8px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: 600 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 14px !important;
  color: #374151 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  min-width: 32px !important;
}

.captcha-option:hover {
  border-color: #0088cc !important;
  background: linear-gradient(145deg, #e6f3ff, #cce7ff) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.2),
    0 2px 4px rgba(0, 136, 204, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 15px rgba(0, 136, 204, 0.1) !important;
  color: #0088cc !important;
}

.captcha-option.btn-primary {
  border-color: #0088cc !important;
  background: linear-gradient(145deg, #cce7ff, #99d6ff) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3),
    0 2px 6px rgba(0, 136, 204, 0.2) !important;
  color: #0088cc !important;
}

.captcha-option.btn-success {
  border-color: #10b981 !important;
  background: linear-gradient(145deg, #d1fae5, #a7f3d0) !important;
  color: #065f46 !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4),
    0 3px 8px rgba(16, 185, 129, 0.3) !important;
}

.captcha-option.btn-danger {
  border-color: #ef4444 !important;
  background: linear-gradient(145deg, #fee2e2, #fecaca) !important;
  color: #991b1b !important;
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.captcha-option:disabled {
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
}

/* State classes sama dengan SIMAK */
.captcha-option.selected {
  border-color: #0088cc !important;
  background: linear-gradient(145deg, #cce7ff, #99d6ff) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3),
    0 2px 6px rgba(0, 136, 204, 0.2) !important;
  color: #0088cc !important;
  width: 32px !important;
  height: 32px !important;
}

.captcha-option.correct {
  border-color: #10b981 !important;
  background: linear-gradient(145deg, #d1fae5, #a7f3d0) !important;
  color: #065f46 !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4),
    0 3px 8px rgba(16, 185, 129, 0.3) !important;
  width: 32px !important;
  height: 32px !important;
}

.captcha-option.incorrect {
  border-color: #ef4444 !important;
  background: linear-gradient(145deg, #fee2e2, #fecaca) !important;
  color: #991b1b !important;
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
  width: 32px !important;
  height: 32px !important;
}

@media (max-width: 768px) {
  .captcha-option {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
  }

  .captcha-option.selected {
    width: 28px !important;
    height: 28px !important;
  }

  .captcha-option.correct {
    width: 28px !important;
    height: 28px !important;
  }

  .captcha-option.incorrect {
    width: 28px !important;
    height: 28px !important;
  }
}
