/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

:root {
  --primary-color: #000;
  --focus-shadow: rgba(0, 0, 0, 0.15);
  --navbar-bg: #214E34;
  --border-radius: 12px;
}

* {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100,
    "YTLC" 500;
}

/******************** Navigation ****************************/
.custom-topnav {
  background-color: var(--navbar-bg) !important;
}

.custom-links {
  color: black !important;
  text-decoration: none !important;
}

.custom-links:hover {
  color: black !important;
}

/******************** Bootstrap Dashboard ****************************/
body {
  font-size: .875rem;
}

.btn {
  border-radius: 0 !important;
}

.bi {
  display: inline-block;
  width: 1rem;
  height: 1rem;
}

.feather {
  width: 16px;
  height: 16px;
}

/*
 * Sidebar
 */
.sidebar {
  position: fixed;
  top: 0;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
}

/*
 * Navbar
 */
.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
}



/******************** Buttons ****************************/
  .btn-dark {
    background-color: #000;
    border-color: #000;
  }

  .btn-dark:hover {
    background-color: #333;
    border-color: #333;
  }

/******************** Tables ****************************/

  .table thead th {
    background: #f8f9fa !important;
    color: #000 !important;
    border: none !important;
    font-weight: 600 !important;
  }

.table th {
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

/* Hover effect */
.table-hover tbody tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}



/******************** Forms ****************************/
.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/* Form Focus States */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem var(--focus-shadow) !important;
}

/* Placeholders */
  .form-control::placeholder {
    color: #ced4da !important;
    opacity: 1 !important;
  }

/* Checkboxes */
.form-check-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem var(--focus-shadow) !important;
}

  .form-check-input:checked {
    background-color: #000 !important;
    border-color: #000 !important;
  }




/* Additional specificity for search inputs */
.search-box .form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem var(--focus-shadow) !important;
}



/******************** Cards ****************************/

/* Dashboard */



/* General cards */

  .card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  }
  
  .card-header {
    background: white !important;
    color: #000 !important;
    font-weight: 600 !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 2px solid #000 !important;
  }

/* Stats cards */
.stats-card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.patient-card {
  transition: all 0.2s;
  cursor: pointer;
}

.patient-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



/******************** Search Box ****************************/
.search-box {
  border-radius: var(--border-radius);
}



/******************** Pagination ****************************/
/* Pagination styling */
.pagination {
  margin-top: 1.5rem;
}

.pagination .page-item .page-link {
  color: var(--primary-color);
  border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.pagination .page-item .page-link:hover {
  background-color: #f8f9fa;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
}



/******************** Badges ****************************/
.badge-custom {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

  .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
  }
/******************** Nav Pills ****************************/



/******************** Icons & Status ****************************/
/* General Icon Styles */
.icon {
  font-size: 16px;
  margin-right: 5px;
}

/* Status-specific Icon Styles */
.pending_approval_icon {
  color: lightgray;
}

.approved_icon {
  color: green;
}

.to_review_icon {
  color: yellow;
}

.paused_icon {
  color: blue;
}

.disabled_icon {
  color: gray;
}

.blocked_icon {
  color: red;
}

.system_owned_icon {
  color: black;
}

.pending_adoption_icon {
  color: lightgray;
}

.adopted_icon {
  color: green;
}

.restricted_offer_icon {
  color: purple;
}

.private_offer_icon {
  color: black;
}

.public_offer_icon {
  color: green;
}

.deal_icon {
  color: teal;
}

.free_icon {
  color: magenta;
}

.paid_icon {
  color: gold;
}

.live_icon {
  color: green;
}

.expired_icon {
  color: darkred;
}

.admin_icon {
  color: red;
}

.new_user_icon {
  color: lightgray;
}

.standard_icon {
  color: blue;
}

.business_icon {
  color: black;
}

.microservice_icon {
  color: darkorchid;
}

.error_icon {
  color: darkred;
}

/******************** Images ****************************/
.index-list-image {
  /*  height: 56px !important;*/
  width: 56px !important;
  margin: auto;
}


/******************** Info ****************************/



  .info-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
  }
  
  .info-value {
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
  }

/******************** Progress Steps ****************************/

  .progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
  }

  .progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 3rem;
  }

  .progress-step::before {
    content: attr(data-step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    z-index: 1;
  }

  .progress-step::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
  }

  .progress-step:first-child::after {
    display: none;
  }

  .progress-step.completed::before {
    background: #28a745;
    border-color: #28a745;
    color: white;
    font-family: 'bootstrap-icons' !important;
    content: '\F633'; 
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .progress-step.completed::after {
    background: #28a745;
  }

  .progress-step.completed::after {
    background: #28a745;
  }

  .progress-step.active::before {
    background: #000;
    border-color: #000;
    color: white;
  }

  .progress-step-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .progress-step.active .progress-step-label {
    color: #000;
    font-weight: 600;
  }

  .progress-step.completed .progress-step-label {
    color: #28a745;
  }



