/* Global Font Override */
body, html, input, button, select, textarea {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: whitesmoke;
}

a {
  color: #D7000E;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: #A5000B;
  text-decoration: underline;
}

a:visited {
  color: #88000A;
}

a:active {
  color: #FF1E1E;
}

/* Optional: special treatment for links on dark backgrounds */
.dark-bg a {
  color: #ff4d4d;
}
.dark-bg a:hover {
  color: #ffffff;
}

/* Remove top gap when alerts appear on unauthenticated pages */
.alert {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* ===== LEFT SIDEBAR ===== */
.with-sidebar .sidebar {
      width: 240px;
      background: #000; /* BLACK */
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      padding-top: 20px;
      color: white;
}

.sidebar .logo-area {
      text-align: left;
      padding-left:20px;
      margin-bottom: 30px;
}

.sidebar .logo-area img {
      height: 30px;
}

.sidebar a {
      color: #ccc;
      padding: 12px 20px;
      display: block;
      text-decoration: none;
      font-size: 15px;
}

.sidebar a:hover {
      background: #222;
      color: #fff;
}

.sidebar .section-title {
      padding: 10px 20px;
      font-size: 13px;
      color: #888;
      text-transform: uppercase;
      margin-top: 25px;
}

    /* Bottom profile/user area */
.sidebar-bottom {
      position: absolute;
      bottom: 30px;
      width: 100%;
}

    /* Push content to the right */
.with-sidebar .content-area {
      margin-left: 240px;
      padding: 25px;
}

    /* Flash message padding fix */
.with-sidebar .flash-messages {
      margin-left: 240px;
      padding: 15px;
}

.no-sidebar {
    background-color: #000; /* optional: black background */
}

.no-sidebar .content-area {
    margin-left: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.no-sidebar .flash-messages {
    margin-left: 0 !important;
    padding: 15px;
}

.login-wrapper {
      display: flex;
      height: 100vh;
      background-color: black;
}

.login-container{
  height: 100vh;
  justify-content: center;
  align-items: center;
  margin: 0;
  background-color: black;
  padding: 2.5rem;
}

/* Left login box */
.login-left {
      flex: 0 0 40%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #000;
      padding: 2rem;
}

.login-card {
      width: 100%;
      max-width: 480px;
      border-radius: 1rem;
      box-shadow: 0 0 25px rgba(0,0,0,0.1);
      background: white;
      padding: 2.5rem;
      min-height: 500px; /* 👈 increase or tweak this value */
      display: flex;
      flex-direction: column;
      justify-content: center; /* centers content vertically */
}

.login-card h3 {
      font-weight: 600;
      margin-bottom: 1rem;
}

.btn-login {
      background-color: #D7000E;
      border: none;
}

.btn-login:hover {
      background-color: #B00008;
}

.forgot-link {
      text-align: right;
      font-size: 0.9rem;
      display: block;
      margin-top: -0.5rem;
      margin-bottom: 1rem;

}

.login-header {
  text-align: left;
}

.clip-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 8px;
}

.login-header h3 {
  font-weight: 600;
  color: #D7000E;  /* your deep red accent */
}

.login-header p {
  color: #6c757d;  /* Bootstrap muted gray */
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

    /* Right image */
.login-right {
      flex: 1;
      background: url('oil_pump_jacks.png') no-repeat center center/cover;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }
    .login-left, .login-right {
        flex: unset;
        width: 100%;
        height: 50vh;
    }
    .login-right {
        order: -1;
    }
}
/* Default pagination link */
.page-link {
    color: #000 !important;             /* text color */
    border-color: #999 !important;    /* border color */
}

/* Hover state */
.page-link:hover {
    color: #fff !important;
    background-color: #000 !important;
    border-color: #000 !important;
}

/* Active (current page) */
.page-item.active .page-link {
    color: #fff !important;
    background-color: #000 !important;
    border-color: #000 !important;
}

/* Disabled */
.page-item.disabled .page-link {
    color: #777 !important;
    border-color: #ccc !important;
}

/* PRIMARY BUTTON — RED */
.btn-primary-custom {
    background-color: #D70009;
    color: #FFFFFF !important;
    border: none;
}


.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color: #B00008; /* darker shade */
    color: #FFFFFF !important;
}

/* SECONDARY BUTTON — BLACK */
.btn-secondary-custom {
    background-color: #000000;
    color: #FFFFFF !important;
    border: none;
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
    background-color: #222222; /* softer black */
    color: #FFFFFF !important;
}

/* TERTIARY BUTTON — OUTLINE (Optional) */
.btn-outline-custom {
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
    background-color: #FFFFFF;
    color: #000000;
}

/* Circular Back Button */
.back-circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.back-circle-btn:hover {
    background-color: #000;
    color: #fff;
}

.back-circle-btn:active {
    transform: scale(0.92);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.text-highlight {
    color: #D7000E; 
}
.text-gray {
    color: #ccc; 
    font-size: 0.65rem;
}
.text-normal {
      font-size: 0.75rem;
}
/* Base checkbox (unchecked) */
.black-check {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #000 !important;  /* black border */
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    background-color: #fff !important;  /* white background */
    display: inline-block;
    position: relative;
}

/* Checked state */
.black-check:checked {
    background-color: #000 !important;   /* black background */
    border-color: #000 !important;
}

/* Clean white checkmark SVG (Bootstrap-style) */
.black-check:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 0px;
    width: 12px;
    height: 12px;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.485 3.879l-7.071 7.071L2.515 6.05 3.929 4.636l2.485 2.485 5.657-5.657 1.414 1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px 12px;
}

.card {
  padding: 20px;
}

.card-label {
  font-weight: bold;
  font-size: 0.75rem;
}

.no-caret::after {
    display: none !important;
}

.card-value-text {
  font-weight: normal;
  font-size: 0.75rem;
}

.dash-row {
  margin-top: 15px;
}

.table-padded td, .table-padded th {
    padding: 12px 16px !important;
}

.tab-body {
      margin-top:0px;
      background-color: #fff;
      padding: 20px;
      border-left: 1px solid #ddd; 
      border-right: 1px solid #ddd; 
      border-bottom: 1px solid #ddd;
      min-height: 500px;
}

#methaneChart {
  height: 300px;
}

.kpi-card {
    border-radius: 14px;
    background: #ffffff;
    padding: 20px 25px;
}

.kpi-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.kpi-section {
    text-align: center;
    padding: 10px 0;
}

.kpi-left {
    border-right: 1px solid #e6e6e6;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
}

.kpi-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: .5px;
}

.kpi-subtext {
    font-size: 0.75rem;
}

.kpi-progress {
    height: 6px;
    width: 100%;
    background: #eaeaea;
    border-radius: 6px;
    overflow: hidden;
}

.kpi-progress-bar {
    height: 6px;
    background: #D7000E;
    border-radius: 6px;
}
.kpi-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.kpi-line-no-border {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;

}
.lifecycle-progress {
    height: 10px;
    border-radius: 10px;
}

.status-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.status-NS { background: #6c757d; }
.status-RE { background: #17a2b8; }
.status-CB { background: #ffc107; color: #000; }
.status-SP { background: #fd7e14; }
.status-CO { background: #28a745; }
.status-SR { background: #28a745; }
.status-MO { background: #000; }

.status-text-NS { color: #6c757d; }
.status-text-RE { color: #17a2b8; }
.status-text-CB { color: #ffc107;  }
.status-text-SP { color: #fd7e14; }
.status-text-CO { color: #28a745; }
.status-text-SR { color: #28a745; }
.status-text-MO { color: #000; }

#map {
      width: 100%;
      height: 400px;
    }
