/* --- Custom CSS for Figma Design --- */

/* 1. Main Background */
.layout-wrapper {
  background-image: url("/assets/img/backgrounds/BG.png") !important;
  background-size: cover !important;
  background-position: center !important;
}
.content-wrapper {
  background: transparent !important;
}
.layout-navbar,
.content-footer,
.layout-menu {
  background: #ffffff !important;
}

/* 2. Sidebar */
.app-brand-text {
  color: #00bcd4 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}
.menu-inner .menu-item.active > .menu-link {
  background: #00bcd4 !important;
  color: #ffffff !important;
  border-radius: 8px;
  margin: 0 0.5rem;
  backdrop-filter: blur(5px);
}
.menu-inner .menu-item.active > .menu-link i,
.menu-inner .menu-item.active > .menu-link div {
  color: #ffffff !important;
}

.menu-link.menu-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important; /* FIX paling penting */
}

.a.menu-link.menu-toggle::before {
  margin-left: 2rem !important;
}

.a.menu-link.menu-toggle::after {
  margin-left: 2rem !important;
}

/* 3. Stat Cards */
.stat-card-active {
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #4dd0e1 0%, #00bcd4 100%) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}
.stat-card-active h1,
.stat-card-active h4,
.stat-card-active span,
.stat-card-active small {
  color: #ffffff !important;
}
.stat-card-active:hover {
  transition: all 0.4s ease;
  transform: translateY(-5px);
}

.stat-card-inactive {
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px);
  color: #00bcd4 !important;
}
.stat-card-inactive h1,
.stat-card-inactive h4,
.stat-card-inactive span,
.stat-card-inactive small {
  color: #00bcd4 !important;
}
.stat-card-inactive:hover {
  transition: all 0.4s ease;
  transform: translateY(-5px);
}

.stat-card-warning {
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}
.stat-card-warning h1,
.stat-card-warning h4,
.stat-card-warning span,
.stat-card-warning small {
  color: #ffffff !important;
}
.stat-card-warning:hover {
  transition: all 0.4s ease;
  transform: translateY(-5px);
}

.stat-card-danger {
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}
.stat-card-danger h1,
.stat-card-danger h4,
.stat-card-danger span,
.stat-card-danger small {
  color: #ffffff !important;
}
.stat-card-danger:hover {
  transition: all 0.4s ease;
  transform: translateY(-5px);
}

/* 4. Table Styling */
.card-datatable {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px);
  border-radius: 0.875rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  padding: 1.5rem;
}
.table {
  border-collapse: separate !important;
  border-spacing: 0 1rem !important;
}
.table thead {
  background: transparent !important;
}
.table thead th {
  color: #6b7280 !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: none !important;
  text-transform: none !important;
  font-size: 14px !important;
  padding-top: 0 !important;
  padding-bottom: 0.5rem !important;
}
.table tbody tr {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease;
}
.table tbody tr:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}
.table tbody td {
  border: none !important;
  padding: 1.25rem 1rem !important;
  vertical-align: middle;
}
.table tbody td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.table tbody td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* 5. Custom Checkbox */
.form-check-input {
  border-radius: 6px !important;
  border: 2px solid #d1d5db !important;
}
.form-check-input:checked {
  background-color: #33c8da !important;
  border-color: #33c8da !important;
}

/* 6. Status Badge */
.badge.bg-label-success {
  background: #d1f4dd !important;
  color: #0f7c3a !important;
}
.badge.bg-label-danger {
  background: #fecdd3 !important;
  color: #be123c !important;
}
.badge.bg-label-warning {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

.bg-label-info {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}
.bg-label-secondary {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}
/* 7. Buttons */
.btn-edit-profile {
  background: linear-gradient(135deg, #743bfaff 0%, #7c3aed 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
}
.btn-delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

/* 8. Search Bar */
.navbar-search-wrapper .input-group {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
.navbar-search-wrapper .input-group-text {
  background: transparent !important;
  border: none !important;
}
.navbar-search-wrapper .form-control {
  background: transparent !important;
  border: none !important;
}
.navbar-search-wrapper .form-control:focus {
  box-shadow: none !important;
}

/* 9. Tombol Tambah Akun */
.btn-tambah-akun {
  background: #00bcd4 !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3) !important;
  border: none !important;
  outline: none !important;
}
.btn-tambah-akun:hover {
  background: #00aabf !important;
  color: white !important;
}
.btn-tambah-akun:focus {
  box-shadow: 0 0 0 0 !important;
}
.btn-tambah-akun:disabled {
  background: #b0bec5 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

i.ti {
  background: none !important;
  display: inline-block;
  color: inherit !important;
  font-style: normal !important;
  font-size: 24px !important;
}

.menu-icon i,
.navbar-nav i.ti {
  font-size: 35px !important;
  vertical-align: middle !important;
}

.container-xxl {
  max-width: 96% !important;
}

.btn-tambah-akun {
  margin-right: 8px !important;
}

.nav-item i.ti {
  font-size: 24px !important;
}

.btn-primary {
  background: #00bcd4 !important;
  color: white !important;
}

.btn-primary:hover {
  background: #0097a7 !important;
}

.btn-primary:disabled {
  background: #b0bec5 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

/* Loading spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Error message styling */
.alert {
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Number Badge from Wadir Dashboard */
.number-badge {
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  display: inline-block;
}

.stat-card-active .number-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* --- Fantastic But Simple Modal Redesign --- */

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translateY(-50px);
}
.modal.show .modal-dialog {
  transform: translateY(0);
}

.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.modal-header {
  background: #f8f9fa;
  color: #343a40;
  border-bottom: 1px solid #dee2e6;
  padding: 1.25rem 1.5rem;
  align-items: center;
}

.modal-header .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.modal-header .btn-close {
  transition: all 0.2s ease;
}
.modal-header .btn-close:hover {
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem 1.5rem;
}

.modal-body .form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Remove the input-group styling */
.modal-body .input-group {
  box-shadow: none;
  transition: none;
  border-radius: 0;
}
.modal-body .input-group:focus-within {
  box-shadow: none;
  transform: none;
}
.modal-body .input-group-text {
    background-color: transparent;
    border: none;
    padding: 0.75rem 0;
    color: #6c757d;
}

.modal-body .form-control,
.modal-body .form-select {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}
.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #ffffff;
}


.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.modal-footer .btn {
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-footer .btn-label-secondary {
  background: transparent;
  color: #495057;
  border: 1px solid #ced4da;
}
.modal-footer .btn-label-secondary:hover {
  background: #e9ecef;
}

.modal-footer .btn-primary {
  background: #007bff !important; /* A more standard blue */
  color: white !important;
  border: none !important;
}
.modal-footer .btn-primary:hover {
  background: #0056b3 !important;
}



/* --- Animations --- */

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 188, 212, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 188, 212, 0.6); }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animation Classes */
.card-animation {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  position: relative;
}

.card-animation:nth-child(1) { animation-delay: 0.1s; }
.card-animation:nth-child(2) { animation-delay: 0.2s; }
.card-animation:nth-child(3) { animation-delay: 0.3s; }
.card-animation:nth-child(4) { animation-delay: 0.4s; }

.card-animation:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 188, 212, 0.4);
}

.table-animation tbody tr {
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-animation tbody tr:nth-child(1) { animation-delay: 0.2s; }
.table-animation tbody tr:nth-child(2) { animation-delay: 0.3s; }
.table-animation tbody tr:nth-child(3) { animation-delay: 0.4s; }
.table-animation tbody tr:nth-child(4) { animation-delay: 0.5s; }
.table-animation tbody tr:nth-child(5) { animation-delay: 0.6s; }
.table-animation tbody tr:nth-child(6) { animation-delay: 0.7s; }
.table-animation tbody tr:nth-child(7) { animation-delay: 0.8s; }
.table-animation tbody tr:nth-child(8) { animation-delay: 0.9s; }
.table-animation tbody tr:nth-child(9) { animation-delay: 1.0s; }
.table-animation tbody tr:nth-child(10) { animation-delay: 1.1s; }


.table-animation tbody tr:hover {
  background: linear-gradient(to right, #F0F9FF, transparent);
  transform: translateX(5px);
}

.header-animation {
  opacity: 0;
  animation: slideInRight 0.6s ease-out forwards;
}

