/* Monitoring Area Rahman - Custom Styles */

/* Tab buttons */
.tab-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: rgba(255,255,255,0.9); }
.tab-btn.active {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

/* Sidebar - desktop sticky */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid #E5E7EB;
  align-self: flex-start;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 35;
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #4B5563;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover { background: #F3F4F6; }
.sidebar-link.active {
  background: #FEF2F2;
  color: #CD001A;
  font-weight: 600;
}

/* Table header - J&T red */
.table-header-jnt {
  background-color: #CD001A;
  color: #FFFFFF;
}

/* Table row hover */
.table-row-hover:hover {
  background-color: #FEF2F2;
}

/* Section header */
.section-header {
  color: #CD001A;
  border-bottom: 2px solid #CD001A;
  padding-bottom: 4px;
}

/* Scrollable table wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Progress bar */
.progress-bar-bg {
  background-color: #E5E7EB;
  border-radius: 2px;
  height: 18px;
  min-width: 60px;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar-text {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  padding: 0 6px;
  white-space: nowrap;
}

/* Scorecard */
.scorecard {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
}
.scorecard-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .scorecard-value {
    font-size: 1.75rem;
  }
}
.scorecard-label {
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 4px;
}
.scorecard-sublabel {
  font-size: 0.625rem;
  color: #9CA3AF;
}

/* Select focus */
select:focus {
  outline: none;
  border-color: #CD001A;
  box-shadow: 0 0 0 2px rgba(205, 0, 26, 0.15);
}
