/* Dashboard-specific badge tuning */
.dashboard-page .status-badge,
.dashboard-page .violation-badge {
  font-weight: 500;
  font-size: 14px !important;
  /* lighter than default */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 4px 10px;
  min-height: 22px;
  border-radius: 999px;
}

/* Additional specificity for table badges */
.dashboard-page .table .status-badge,
.dashboard-page .table .violation-badge,
.dashboard-page .violations-list .violation-badge {
  font-size: 14px !important;
}

/* Force font-size for status and violation badges with badge classes */
.dashboard-page .table .badge.status-badge,
.dashboard-page .table .badge.violation-badge,
.dashboard-page .violations-list .badge.violation-badge,
.dashboard-page .badge.status-badge.badge-success,
.dashboard-page .badge.status-badge.badge-warning,
.dashboard-page .badge.violation-badge.badge-danger {
  font-size: 14px !important;
}

/* Dashboard Styles - Direct Application */
.dashboard-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Dashboard Block Headers - Square, Purple */
.dashboard-page .block-header {
  border-radius: 0 !important;
  padding: 20px;
  background-color: #3f51b5 !important;
  border: none !important;
}

.dashboard-page .block-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

/* Dashboard Content - No Borders */
.dashboard-page .block-content {
  border: none !important;
  border-radius: 0 !important;
  padding: 30px !important;
  position: relative;
}

/* Dashboard Widget Stats - Equal Height */
.dashboard-page .widget-stats {
  height: 120px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.dashboard-page .widget-stats:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-page .stats-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-page .stats-info h4 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.dashboard-page .stats-info p {
  margin: 5px 0 0 0;
  opacity: 0.9;
}

.dashboard-page .stats-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

/* Dashboard Color Indicators - Gray Borders */
.dashboard-page .widget-stats.bg-success {
  background-color: transparent !important;
  border: 2px solid #6c757d !important;
}

.dashboard-page .widget-stats.bg-danger {
  background-color: transparent !important;
  border: 2px solid #6c757d !important;
}

.dashboard-page .widget-stats.bg-warning {
  background-color: transparent !important;
  border: 2px solid #6c757d !important;
}

.dashboard-page .widget-stats.bg-info {
  background-color: transparent !important;
  border: 2px solid #6c757d !important;
}

.dashboard-page .widget-stats.bg-primary {
  background-color: transparent !important;
  border: 2px solid #6c757d !important;
}

/* Dashboard Period Selector - Project Style */
.dashboard-page .form-material-primary label {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 5px;
  font-weight: 500;
  display: block;
}

.dashboard-page .form-material-primary .form-control {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 8px 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  background-color: #fff;
  color: #333;
  font-size: 0.9rem;
  height: auto;
  min-height: 36px;
}

.dashboard-page .form-material-primary .form-control:focus {
  outline: none;
  border-color: #3f51b5;
  box-shadow: 0 0 0 0.2rem rgba(63, 81, 181, 0.25);
}

/* Dashboard Progress Circles */
.dashboard-page .progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.dashboard-page .progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dashboard-page .progress-circle circle {
  fill: none;
  stroke-width: 8;
}

.dashboard-page .progress-circle .bg-circle {
  stroke: #e9ecef;
}

.dashboard-page .progress-circle .progress-circle-success {
  stroke: #28a745;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.dashboard-page .progress-circle .progress-circle-danger {
  stroke: #dc3545;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.dashboard-page .progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

/* Dashboard Object Rating Progress */
.dashboard-page .object-rating-progress {
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(to right, #dc3545 0%, #ffc107 50%, #28a745 100%);
  position: relative;
}

.dashboard-page .object-rating-progress .progress-bar {
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Dashboard Spacing */
.dashboard-page .mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Dashboard Block Enhancements */
.dashboard-page .block {
  border-radius: 0;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border: none;
}

.oval {
  padding-bottom: 5px;
}


/* Dashboard Responsive Adjustments */
@media (max-width: 768px) {
  .dashboard-page .widget-stats .stats-icon {
    font-size: 2rem;
  }

  .dashboard-page .widget-stats .stats-info h4 {
    font-size: 1.5rem;
  }

  .dashboard-page .block-content {
    padding: 20px !important;
  }
}
