/* Custom Styles for GetRobloxKey - Vonce Dark Theme */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0714;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #261f3d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #928aa6;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}

/* Card hover effects - using tonal layering instead of shadows */
.card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #261f3d;
}

.card-hover:hover {
  border-color: #3c3550;
  background: rgba(146, 138, 166, 0.05);
  transform: translateY(-2px);
}

/* Button primary - tertiary color for highest emphasis */
.btn-primary {
  background: linear-gradient(135deg, #8b26ff, #9d3fff);
  color: #e2e8f0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9d3fff, #b66dff);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 38, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(139, 38, 255, 0.2);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-primary:active::after {
  width: 300px;
  height: 300px;
}

/* Gray outline button - for consistent gray styling */
.btn-gray {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #928aa6;
  border: 1px solid #261f3d;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-gray:hover {
  border-color: #3c3550;
  color: #9e96b2;
  background: rgba(146, 138, 166, 0.06);
  transform: translateY(-1px);
}

.btn-gray i {
  color: #928aa6;
  transition: color 0.3s ease;
}

.btn-gray:hover i {
  color: #9e96b2;
}

/* Glassmorphism - adapted for dark theme */
.glass {
  background: rgba(19, 15, 36, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(38, 31, 61, 0.5);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #8b26ff, #b66dff, #d48aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Input focus styles - enhanced modern */
.input-focus {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #130f24;
  color: #f3f2f7;
  border: 2px solid #261f3d;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  caret-color: #8b26ff;
}

.input-focus:hover {
  border-color: #3d2e5c;
  background: #16112a;
}

.input-focus:focus {
  border-color: #8b26ff;
  box-shadow:
    0 0 0 4px rgba(139, 38, 255, 0.12),
    0 4px 20px rgba(139, 38, 255, 0.08);
  outline: none;
  background: #1a1530;
}

.input-focus::placeholder {
  color: #928aa6;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.input-focus:focus::placeholder {
  opacity: 0.6;
}

/* Input with icon wrapper - enhanced */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #928aa6;
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 0.95rem;
}

.input-icon-wrapper .input-focus {
  padding-left: 44px;
}

.input-icon-wrapper:focus-within .input-icon {
  color: #8b26ff;
  transform: translateY(-50%) scale(1.1);
}

/* Input group with label and icon */
.input-group {
  position: relative;
}

.input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.input-group:focus-within label {
  color: #8b26ff;
}

/* Select enhanced */
select.input-focus {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23928AA6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

select.input-focus:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A39EB8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select.input-focus:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B26FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Textarea enhanced */
textarea.input-focus {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* Checkbox enhanced */
input[type="checkbox"] {
  accent-color: #8b26ff;
  width: 18px;
  height: 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Number input enhanced */
input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.5;
  cursor: pointer;
}

input[type="number"]:hover::-webkit-inner-spin-button,
input[type="number"]:hover::-webkit-outer-spin-button {
  opacity: 1;
}

/* Color input enhanced */
input[type="color"] {
  padding: 3px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
}

input[type="color"]:hover {
  border-color: #8b26ff !important;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

/* Disabled input */
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Input with right icon (like password toggle) */
.input-right-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #928aa6;
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.input-right-icon:hover {
  color: #a39eb8;
}

/* Form hint text */
.form-hint {
  font-size: 0.75rem;
  color: #928aa6;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.form-hint i {
  font-size: 0.7rem;
  color: #8b26ff;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #261f3d;
  border-top-color: #8b26ff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #130f24 25%, #1a1530 50%, #130f24 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Table styles */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}

.table-container th {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Key display */
.key-display {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  user-select: all;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== HERO SECTION - Modern Animated Background ===== */

/* Keyframe animations for hero */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(1deg);
  }
  66% {
    transform: translateY(8px) rotate(-1deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes slide-up-fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero container - full screen */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0714;
}

@keyframes mesh-shift {
  0% {
    background:
      radial-gradient(
        ellipse 80% 60% at 0% 20%,
        rgba(139, 38, 255, 0.08) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 60% 50% at 100% 80%,
        rgba(182, 109, 255, 0.06) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 50% 40% at 50% 50%,
        rgba(139, 38, 255, 0.04) 0%,
        transparent 50%
      );
  }
  50% {
    background:
      radial-gradient(
        ellipse 70% 50% at 20% 30%,
        rgba(139, 38, 255, 0.1) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 50% 60% at 80% 60%,
        rgba(182, 109, 255, 0.08) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 60% 40% at 40% 70%,
        rgba(139, 38, 255, 0.05) 0%,
        transparent 50%
      );
  }
  100% {
    background:
      radial-gradient(
        ellipse 60% 70% at 30% 10%,
        rgba(139, 38, 255, 0.09) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 70% 40% at 70% 90%,
        rgba(182, 109, 255, 0.07) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 40% 60% at 60% 30%,
        rgba(139, 38, 255, 0.06) 0%,
        transparent 50%
      );
  }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 38, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 38, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 60% at center,
    black 30%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at center,
    black 30%,
    transparent 70%
  );
}

/* Floating gradient orbs - using radial gradients instead of blur to avoid sharp edges */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(139, 38, 255, 0.12) 0%,
    rgba(139, 38, 255, 0.04) 40%,
    transparent 70%
  );
  top: -250px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(182, 109, 255, 0.08) 0%,
    rgba(182, 109, 255, 0.03) 40%,
    transparent 70%
  );
  bottom: -200px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 38, 255, 0.06) 0%,
    rgba(139, 38, 255, 0.02) 40%,
    transparent 70%
  );
  top: 40%;
  left: 30%;
  animation: pulse-glow 6s ease-in-out infinite;
}

/* Meteor / shooting star animation */
.hero-meteor {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #8b26ff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.hero-meteor::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(to left, rgba(139, 38, 255, 0.6), transparent);
  right: 100%;
}

.hero-meteor.medium {
  width: 3px;
  height: 3px;
}

.hero-meteor.medium::before {
  width: 90px;
  height: 1.5px;
  background: linear-gradient(to left, rgba(139, 38, 255, 0.5), transparent);
}

@keyframes meteor-fall {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-35deg);
  }
  5% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-400px, 600px) rotate(-35deg);
  }
}

/* Bottom fade gradient */
.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, #0a0714, transparent);
}

/* Hero content animations */
.hero-content > * {
  opacity: 0;
  animation: slide-up-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
  animation-delay: 0.1s;
}
.hero-title {
  animation-delay: 0.3s;
}
.hero-description {
  animation-delay: 0.5s;
}
.hero-actions {
  animation-delay: 0.7s;
}

/* ===== END HERO SECTION ===== */

/* Service card enhanced */
.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #3C3550;
}

/* Stat card enhanced */
.stat-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(139, 38, 255, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: all 0.4s ease;
}

.stat-card:hover::after {
  transform: translate(30%, -30%) scale(1.5);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #3c3550;
}

/* Feature card enhanced */
.feature-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #3c3550;
}

.feature-card .feature-icon {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 30px rgba(139, 38, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    min-height: 100dvh;
  }
}

/* Print styles */
@media print {
  nav,
  footer,
  .no-print {
    display: none !important;
  }
}

/* ===== CUSTOM SELECT / DROPDOWN ===== */

/* Remove default select arrow and add custom */
select.input-focus {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23928AA6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

select.input-focus:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A39EB8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
}

select.input-focus:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B26FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
}

/* Dropdown option styling */
select.input-focus option {
  background: #130f24;
  color: #f3f2f7;
  padding: 10px 16px;
  font-size: 0.95rem;
}

select.input-focus option:hover {
  background: rgba(139, 38, 255, 0.08) !important;
}

/* ===== CUSTOM DROPDOWN MENU (list frame) ===== */

.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: #130f24;
  color: #f3f2f7;
  border: 2px solid #261f3d;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.custom-dropdown-trigger:hover {
  border-color: #3d2e5c;
  background: #16112a;
}

.custom-dropdown-trigger.active {
  border-color: #8b26ff;
  box-shadow: 0 0 0 4px rgba(139, 38, 255, 0.12), 0 4px 20px rgba(139, 38, 255, 0.08);
  background: #1a1530;
}

.custom-dropdown-trigger .dropdown-arrow {
  transition: transform 0.3s ease;
  color: #928aa6;
  font-size: 0.75rem;
}

.custom-dropdown-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
  color: #8b26ff;
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #130f24;
  border: 1px solid #261f3d;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(38, 31, 61, 0.3);
  display: none;
  animation: dropdown-appear 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 280px;
  overflow-y: auto;
}

.custom-dropdown-menu.show {
  display: block;
}

@keyframes dropdown-appear {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown menu scrollbar */
.custom-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: #261f3d;
  border-radius: 3px;
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #a39eb8;
  font-size: 0.875rem;
  position: relative;
  border: 1px solid transparent;
}

.custom-dropdown-item:hover {
  background: rgba(139, 38, 255, 0.06);
  color: #f3f2f7;
  border-color: rgba(139, 38, 255, 0.15);
}

.custom-dropdown-item.selected {
  background: rgba(139, 38, 255, 0.1);
  color: #b66dff;
  border-color: rgba(139, 38, 255, 0.25);
}

.custom-dropdown-item.selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  margin-left: auto;
  color: #8b26ff;
}

.custom-dropdown-item .item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.custom-dropdown-item .item-text {
  flex: 1;
}

.custom-dropdown-item .item-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(146, 138, 166, 0.1);
  color: #928aa6;
}

/* Divider in dropdown */
.custom-dropdown-divider {
  height: 1px;
  background: #261f3d;
  margin: 4px 0;
}

/* ===== CUSTOM DATE/TIME INPUT ===== */

/* Force dark theme on the calendar popup frame */
input[type="datetime-local"],
input[type="date"] {
  color-scheme: dark;
  -webkit-color-scheme: dark;
}

input[type="datetime-local"].input-focus,
input[type="date"].input-focus {
  color-scheme: dark;
  -webkit-color-scheme: dark;
  padding-right: 16px;
}

/* Calendar picker icon */
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  background: #130f24;
  border-radius: 8px;
  border: 1px solid #261f3d;
  padding: 4px;
  cursor: pointer;
  opacity: 1;
  transition: all 0.3s ease;
  color-scheme: dark;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  border-color: #8b26ff;
  background: rgba(139, 38, 255, 0.08);
}

/* Date text fields */
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  color: #f3f2f7;
  font-family: 'Inter', sans-serif;
  padding: 0;
}

input[type="datetime-local"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-text {
  color: #928aa6;
  padding: 0 3px;
  font-weight: 500;
}

input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  color: #f3f2f7;
  padding: 0 2px;
}

input[type="datetime-local"]::-webkit-datetime-edit-day-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-month-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-year-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
  background: rgba(139, 38, 255, 0.2);
  color: #b66dff;
  border-radius: 3px;
}

/* Clear button */
input[type="datetime-local"]::-webkit-clear-button,
input[type="date"]::-webkit-clear-button {
  display: none;
}

/* Padding for date in icon wrapper */
.input-icon-wrapper input[type="datetime-local"],
.input-icon-wrapper input[type="date"] {
  padding-left: 44px !important;
}

/* ===== CALENDAR POPUP FRAME (THE DROPDOWN) ===== */
/* Style the actual calendar popup/modal that opens */

/* Target the calendar popup shadow DOM through color-scheme + additional tricks */
input[type="date"]::-webkit-calendar-picker,
input[type="datetime-local"]::-webkit-calendar-picker {
  background: #130f24 !important;
}

/* Style the inner calendar popup through available pseudo-classes */
::-webkit-calendar-picker-indicator {
  color-scheme: dark;
}

/* Target the entire calendar popup container */
input[type="date"]::-webkit-datetime-edit {
  -webkit-appearance: none;
}

/* Firefox specific */
@-moz-document url-prefix() {
  input[type="datetime-local"],
  input[type="date"] {
    color: #f3f2f7;
    background-color: #130f24;
    border: 2px solid #261f3d;
  }
}

/* Global dark calendar variables (affects popup) */
:root {
  color-scheme: dark;
}

/* Table row hover */
tr.hover\:bg-slate-50:hover {
  background: rgba(19, 15, 36, 0.6) !important;
}

/* Sidebar link active state */
.sidebar-link.active {
  background: rgba(139, 38, 255, 0.1) !important;
  color: #8b26ff !important;
}

/* Breadcrumb separator */
.breadcrumb-sep {
  color: #261f3d;
}

/* ===== ENHANCED NAVIGATION ===== */

/* Navbar scroll state - transparent at top, solid on scroll */
#main-nav {
  background: transparent;
  border-bottom: 1px solid transparent;
}

#main-nav.scrolled {
  background: rgba(19, 15, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(38, 31, 61, 0.6);
}

#main-nav.scrolled #nav-gradient {
  opacity: 1;
}

/* Desktop nav link */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link-active {
  color: #f3f2f7;
  background: rgba(139, 38, 255, 0.08);
}

.nav-link-active:hover {
  background: rgba(139, 38, 255, 0.12) !important;
}

/* Nav indicator - subtle bottom highlight for active link */
.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b26ff, transparent);
  border-radius: 2px 2px 0 0;
}

/* Mobile menu container */
.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

/* Mobile nav link */
.mobile-nav-link {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link:hover {
  transform: translateX(4px);
}

/* ===== ENHANCED FOOTER ===== */

/* Footer link group hover effect */
.footer-link.group:hover span:first-child {
  transform: scale(1.5);
  background-color: rgba(139, 38, 255, 0.6);
}

.footer-link span:first-child {
  flex-shrink: 0;
  display: inline-block;
}

/* ===== BACK TO TOP BUTTON ===== */

#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #130f24;
  border: 1px solid #261f3d;
  border-radius: 14px;
  padding: 14px 16px;
  pointer-events: auto;
  animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.toast-success::before { background: #10b981; }
.toast-error::before { background: #ef4444; }
.toast-warning::before { background: #f59e0b; }
.toast-info::before { background: #3b82f6; }

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.toast-success .toast-icon { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.toast-error .toast-icon { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.toast-warning .toast-icon { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.toast-info .toast-icon { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-body p {
  font-size: 0.875rem;
  color: #f3f2f7;
  line-height: 1.5;
  margin: 0;
}

.toast-close {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(146, 138, 166, 0.1);
  color: #928aa6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: rgba(146, 138, 166, 0.2);
  color: #f3f2f7;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast-removing {
  animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-out {
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
}

/* ===== CUSTOM ALERT / CONFIRM MODAL ===== */

.custom-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fade-in-overlay 0.2s ease;
  padding: 16px;
}

@keyframes fade-in-overlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.custom-alert {
  background: #130f24;
  border: 1px solid #261f3d;
  border-radius: 16px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: alert-pop-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes alert-pop-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-alert-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.custom-alert h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f3f2f7;
  margin: 0 0 8px;
}

.custom-alert p {
  font-size: 0.875rem;
  color: #a39eb8;
  line-height: 1.6;
  margin: 0 0 24px;
}

.custom-alert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.custom-alert-actions button {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.custom-alert-btn-cancel {
  background: transparent;
  border: 1px solid #261f3d !important;
  color: #a39eb8;
}

.custom-alert-btn-cancel:hover {
  border-color: #3c3550 !important;
  color: #f3f2f7;
}

.custom-alert-btn-confirm {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.custom-alert-btn-confirm:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  transform: translateY(-1px);
}

/* ===== PAGINATION ===== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a39eb8;
  background: transparent;
  border: 1px solid #261f3d;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-btn:hover {
  background: rgba(139, 38, 255, 0.06);
  border-color: #3c3550;
  color: #f3f2f7;
}

.pagination-btn.active {
  background: rgba(139, 38, 255, 0.12);
  border-color: #8b26ff;
  color: #b66dff;
  font-weight: 600;
}

.pagination-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.75rem;
  color: #928aa6;
  padding: 0 8px;
}
