* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
}
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --success-color: #00b894;
  --info-color: #0984e3;
  --warning-color: #fdcb6e;
  --danger-color: #d63031;
}
.card-analytic {
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-analytic:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.card-analytic .icon {
  font-size: 2.5rem;
  opacity: 0.7;
}
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.bg-success-gradient {
  background: linear-gradient(135deg, var(--success-color), #55efc4);
}
.bg-info-gradient {
  background: linear-gradient(135deg, var(--info-color), #74b9ff);
}
.bg-warning-gradient {
  background: linear-gradient(135deg, var(--warning-color), #ffeaa7);
}
.chart-container {
  height: 250px;
}
.user-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.recent-activity-item {
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
  margin-bottom: 15px;
}

/* custom table style */
.table-custom {
  width: 100%;
  border-collapse: collapse;
}
.table-custom th,
.table-custom td {
  text-align: center !important;
  vertical-align: middle;
  padding: 0.75rem;
  white-space: nowrap;
}
.table-custom th {
  background-color: #343a40;
  color: #fff;
}
.table-custom tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}
.table-custom tbody tr:hover {
  background-color: #e9ecef;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .table-custom th,
  .table-custom td {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
}

/* modal */
.modal-content.modal-success {
  background-color: #d4edda; /* hijau muda */
  color: #155724; /* teks hitam kehijauan */
}
.modal-content.modal-success .btn-close {
  filter: invert(20%);
}
.modal-content.modal-error {
  background-color: #dc3545; /* merah */
  color: white;
}
.modal-content.modal-error .btn-close {
  filter: invert(100%);
}
.modal-content.modal-info {
  background-color: #0d6efd; /* biru */
  color: white;
}
.modal-content.modal-info .btn-close {
  filter: invert(100%);
}