/* ==========================================================================
   Healthcare Green Theme for Partograf System (SB Admin 2 Override)
   Primary: #059669 | Gradient: #059669 -> #064e3b | Hover: #047857
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-rgb: 5, 150, 105;
  --primary-hover: #047857;
  --primary-active: #065f46;
  --primary-dark: #064e3b;
  --primary-light: #d1fae5;
}

/* Backgrounds & Sidebar */
.bg-primary {
  background-color: #059669 !important;
}

.bg-gradient-primary {
  background-color: #059669 !important;
  background-image: linear-gradient(180deg, #059669 10%, #064e3b 100%) !important;
  background-size: cover !important;
}

/* Typography & Links */
.text-primary {
  color: #059669 !important;
}

a.text-primary:hover,
a.text-primary:focus {
  color: #047857 !important;
}

/* Buttons */
.btn-primary {
  color: #fff !important;
  background-color: #059669 !important;
  border-color: #059669 !important;
}

.btn-primary:hover {
  color: #fff !important;
  background-color: #047857 !important;
  border-color: #047857 !important;
}

.btn-primary:focus,
.btn-primary.focus {
  color: #fff !important;
  background-color: #047857 !important;
  border-color: #047857 !important;
  box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.4) !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff !important;
  background-color: #059669 !important;
  border-color: #059669 !important;
  opacity: 0.65;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff !important;
  background-color: #065f46 !important;
  border-color: #065f46 !important;
}

.btn-outline-primary {
  color: #059669 !important;
  border-color: #059669 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  color: #fff !important;
  background-color: #059669 !important;
  border-color: #059669 !important;
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.4) !important;
}

/* Borders & Card Accents */
.border-left-primary {
  border-left: 0.25rem solid #059669 !important;
}

.border-bottom-primary {
  border-bottom: 0.25rem solid #059669 !important;
}

.border-primary {
  border-color: #059669 !important;
}

/* Badges & Alerts */
.badge-primary {
  color: #fff !important;
  background-color: #059669 !important;
}

.alert-primary {
  color: #065f46 !important;
  background-color: #d1fae5 !important;
  border-color: #a7f3d0 !important;
}

/* Dropdowns & Navigation */
.dropdown-item.active,
.dropdown-item:active {
  color: #fff !important;
  background-color: #059669 !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff !important;
  background-color: #059669 !important;
}

.page-item.active .page-link {
  color: #fff !important;
  background-color: #059669 !important;
  border-color: #059669 !important;
}

.page-link {
  color: #059669;
}

.page-link:hover {
  color: #047857;
}

/* Form Controls & Checkboxes */
.form-control:focus {
  border-color: #34d399 !important;
  box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25) !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff !important;
  border-color: #059669 !important;
  background-color: #059669 !important;
}

.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25) !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #059669 !important;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #059669 !important;
}

/* Progress Bar */
.progress-bar {
  background-color: #059669 !important;
}

/* Sidebar Specific */
.sidebar-dark .nav-item.active .nav-link {
  color: #fff;
  font-weight: 700;
}

.sidebar-dark .nav-item.active .nav-link i {
  color: #fff;
}

.sidebar-dark .sidebar-brand {
  color: #fff;
}

/* Scroll to top button */
.scroll-to-top {
  background: rgba(5, 150, 105, 0.7) !important;
}

.scroll-to-top:hover {
  background: #059669 !important;
}

/* ==========================================================================
   Monitor & Laptop Screen Layout Optimization (Preserving SB Admin 2 Proportions)
   ========================================================================== */

/* Brand Header */
.sidebar .sidebar-brand .sidebar-brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08rem;
  white-space: nowrap !important;
}

/* Card Improvements */
.card {
  border-radius: 0.35rem;
  transition: box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.border-left-primary {
  border-left: 0.3rem solid #059669 !important;
}

.border-left-success {
  border-left: 0.3rem solid #10b981 !important;
}

.border-left-warning {
  border-left: 0.3rem solid #f59e0b !important;
}

.border-left-danger {
  border-left: 0.3rem solid #ef4444 !important;
}

.border-left-info {
  border-left: 0.3rem solid #06b6d4 !important;
}

/* Table styling for healthcare data */
.table th {
  font-weight: 700;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  color: #4b5563;
  background-color: #f9fafb;
}

.table td {
  vertical-align: middle;
  font-size: 0.9rem;
}

/* Sidebar Card */
.sidebar-dark .sidebar-card {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border-radius: 0.35rem;
  padding: 1rem;
  text-align: center;
  margin: 1rem;
}

.sidebar-dark .sidebar-card .sidebar-card-illustration {
  height: 3rem;
  display: block;
}

