/* ===== MODERN CSS ENHANCEMENTS ===== */

/* Smooth Transitions Global */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pagination Modern */
.page-item.active .page-link {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  border-color: #4e73df;
  box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
}

.page-link {
  color: #4e73df;
  border-radius: 8px;
  margin: 0 3px;
  font-weight: 500;
}

.page-link:hover {
  background-color: #eaecf4;
  color: #4e73df;
  transform: translateY(-2px);
}

/* Sidebar Modern Styling */
.sidebar {
  background: linear-gradient(180deg, #4e73df 0%, #224abe 100%);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  margin: 1rem;
  transition: all 0.3s ease;
}

.sidebar-brand:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.sidebar-brand-icon {
  animation: float 3s ease-in-out infinite;
}

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

/* Nav Item Active State */
.nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  border-left: 4px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-item.active .nav-link {
  color: #fff !important;
  font-weight: 600;
}

/* Nav Links */
.sidebar .nav-item .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  width: 14rem;
  border-radius: 8px;
  margin: 0.25rem 0.5rem;
  position: relative;
  overflow: hidden;
}

.sidebar .nav-item .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
}

.sidebar .nav-item .nav-link:hover::before {
  width: 100%;
}

.sidebar .nav-item .nav-link span {
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.sidebar .nav-item .nav-link i {
  width: 20px;
  position: relative;
  z-index: 1;
}

/* Nav Item Hover */
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.nav-item:hover .nav-link {
  color: #fff;
}

/* Sidebar Heading */
.sidebar-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  margin-top: 1.5rem;
}

/* Sidebar Divider */
.sidebar-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 1rem;
}

/* Charts Container */
#chartContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#nilaiRadarChart {
  max-width: 100%;
  max-height: 100%;
}

/* Cards Enhancement */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.card-header {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 1rem 1.5rem;
}

/* Buttons Enhancement */
.btn {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(78, 115, 223, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17, 153, 142, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(235, 51, 73, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(235, 51, 73, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 147, 251, 0.4);
}

/* Tables Enhancement */
.table {
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.table thead th {
  background: transparent !important;
  color: #fff;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 1rem;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fe;
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Form Controls */
.form-control {
  border-radius: 10px;
  border: 2px solid #e0e7ff;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

/* Badges */
.badge {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}

/* Alerts */
.alert {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
