:root {
  --primary-red: #ff4d4d;
  --text-dark: #1e293b;
  --text-gray: #64748b;
}

.badge-time {
  border-radius: 20px;
  padding: 8px 16px;
  border: 1px solid #edf2f7;
  font-size: 0.75rem;
}

/* Filter Styling */
.filter-container {
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  margin-bottom: 25px;
}

.form-label-custom {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.form-select-custom {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

.btn-filter {
  background-color: var(--primary-red);
  border: none;
  border-radius: 12px;
  padding: 12px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-filter:hover {
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
}

/* Card Horizontal Style */
.card-stat-horizontal {
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  height: 100%;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.icon-box-new {
  width: 65px;
  height: 65px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-content {
  margin-left: 20px;
  overflow: hidden;
}

.stat-label-new {
  color: #8492a6;
  font-weight: 500;
  font-size: 0.8rem;
  margin-bottom: 3px;
  white-space: nowrap;
}

.stat-value-new {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bg-pink-soft {
  background-color: #fff1f2;
  color: #e11d48;
}

.bg-red-soft {
  background-color: #fef2f2;
  color: #dc2626;
}

.bg-mint-soft {
  background-color: #f0fdf4;
  color: #16a34a;
}

/* Tab Monitoring OTM Fix */
.card-otm-header {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.nav-tabs-segmented {
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  display: flex;
  border: none;
  gap: 4px;
}

.nav-tabs-segmented .nav-link {
  border: none;
  border-radius: 9px;
  padding: 8px 18px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tabs-segmented .nav-link.active {
  background: white;
  color: #ff4d4d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Keterbacaan Data OTM & Table Fix */
#otmTabContent {
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 20px;
}

#otmTabContent table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

#otmTabContent .badge {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  min-width: 55px;
  display: inline-block;
}

/* Global Hover Animations */
.card-stat-horizontal:hover,
.card-stat:hover,
.card-styled:hover,
.card.mb-5:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.card-stat,
.card-styled,
.card.mb-5 {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
