/* This is a custom stylesheet for the LEA application. It includes styles for body, headings, and custom buttons. */
/* The primary button has a dark green background with white text, and changes to a light green background with dark green text on hover. */
/* The secondary button has a white background with dark green text and border, and changes to a light green background with dark green text on hover. */


/* BASE STYLES */
body {
  font-family: 'Onest', sans-serif;
}
h1 {
  font-weight: 600;
}

/* Command Center Markdown Styling */
.command-center .card-body {
  /* Base typography */
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  padding: 2rem;
}

.command-center .card-body > *:first-child {
  margin-top: 0;
}

.command-center .card-body > *:last-child {
  margin-bottom: 0;
}

.command-center .card-body h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #2E483E;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #D0F07C;
}

.command-center .card-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2E483E;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid #D0F07C;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.command-center .card-body h2::before {
  content: "📋";
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

.command-center .card-body h2:first-of-type {
  margin-top: 0;
}

.command-center .card-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.command-center .card-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.command-center .card-body h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.command-center .card-body h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.command-center .card-body p {
  margin-bottom: 1rem;
}

.command-center .card-body ul,
.command-center .card-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.command-center .card-body li {
  margin-bottom: 0.25rem;
}

.command-center .card-body li > ul,
.command-center .card-body li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.command-center .card-body blockquote {
  border-left: 4px solid #D0F07C;
  padding: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6c757d;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

.command-center .card-body blockquote p:last-child {
  margin-bottom: 0;
}

.command-center .card-body code {
  background-color: #f8f9fa;
  color: #e83e8c;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.command-center .card-body pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.command-center .card-body pre code {
  background-color: transparent;
  color: #333;
  padding: 0;
}

/* Enhanced table styling with Bootstrap classes */
.command-center .card-body table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.command-center .card-body table.table {
  /* Override Bootstrap table styles for better integration */
  background-color: transparent;
}

.command-center .card-body table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(0, 0, 0, 0.02);
}

.command-center .card-body table.table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: transparent;
}

.command-center .card-body table.table-bordered > :not(caption) > * {
  border-width: 1px 0;
}

.command-center .card-body table.table-bordered > :not(caption) > * > * {
  border-width: 0 1px;
}

.command-center .card-body th,
.command-center .card-body td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
}

.command-center .card-body th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.command-center .card-body thead.table-dark th {
  background-color: #2E483E;
  color: #fff;
  border-color: #1a2d25;
}

.command-center .card-body tr:nth-child(even) {
  background-color: #f8f9fa;
}

.command-center .card-body tr:hover {
  background-color: #e9ecef;
}

.command-center .card-body tr:first-child th:first-child {
  border-top-left-radius: 0.375rem;
}

.command-center .card-body tr:first-child th:last-child {
  border-top-right-radius: 0.375rem;
}

.command-center .card-body tr:last-child td:first-child {
  border-bottom-left-radius: 0.375rem;
}

.command-center .card-body tr:last-child td:last-child {
  border-bottom-right-radius: 0.375rem;
}

.command-center .card-body a {
  color: #2E483E;
  text-decoration: underline;
}

.command-center .card-body a:hover {
  color: #D0F07C;
}

.command-center .card-body hr {
  border: 0;
  height: 1px;
  background-color: #dee2e6;
  margin: 2rem 0;
}

.command-center .card-body strong {
  font-weight: 600;
  color: #2E483E;
}

.command-center .card-body em {
  font-style: italic;
  color: #6c757d;
}

/* Additional Bootstrap-like enhancements */
.command-center .card-body .alert {
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.command-center .card-body .alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}

.command-center .card-body .alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.command-center .card-body .alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.command-center .card-body .alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* Responsive table wrapper */
.command-center .card-body .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Badge styling */
.command-center .card-body .badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.command-center .card-body .badge-primary {
  color: #fff;
  background-color: #2E483E;
}

.command-center .card-body .badge-secondary {
  color: #fff;
  background-color: #6c757d;
}

.command-center .card-body .badge-success {
  color: #fff;
  background-color: #198754;
}

.command-center .card-body .badge-warning {
  color: #000;
  background-color: #ffc107;
}

.command-center .card-body .badge-danger {
  color: #fff;
  background-color: #dc3545;
}

/* Button Styles */
.btn-lea-primary, .btn-lea-secondary, .btn-lea-tertiary {
  font-size: 16px;
  max-height: 40px;
  min-width: 140px;
  border-radius: 8px;
  padding: 8px 16px;
}

/* Primary Button */
.btn-lea-primary {
  background-color: #2E483E;
  color: #F8F9FA;
  border: none;
}

.btn-lea-primary:hover {
  background-color: #D0F07C;
  color: #2E483E;
  border: none;
}

.btn-lea-primary:disabled {
  background-color: #CED4DA;
  color: #6C757D;
  border: none;
}

/* Secondary Button */
.btn-lea-secondary {
  background-color: #F8F9FA;
  color: #2E483E;
  border: 2px solid #2E483E;
}

.btn-lea-secondary:hover {
  background-color: #D0F07C;
  color: #2E483E;
  border: none;
  border: 2px solid #D0F07C;

}

.btn-lea-secondary:disabled {
  background-color: #CED4DA;
  color: #6C757D;
  border: none;
}

/* Tertiary Button */
.btn-lea-tertiary {
  background-color: transparent;
  color: #2E483E;
  border: none;
}

.btn-lea-tertiary:hover {
  background-color: #D0F07C;
  color: #2E483E;
  border: none;
}

.btn-lea-tertiary:disabled {
  background-color: #CED4DA;
  color: #6C757D;
  border: none;
}

/* Dashboard Metric Styles */
.dashboard-metric .card-number {
  font-size: 2.5rem; /* Large number */
  font-weight: bold;
}
.dashboard-metric .card-name {
  font-size: 1rem; /* Smaller font for name */
}rails tmp:cache:clear
.dashboard-metric .card-number {
  font-size: 2.5rem; /* Large number */
  font-weight: bold;
}
.dashboard-metric .card-name {
  font-size: 1rem; /* Smaller font for name */
  color: #6c757d;
}

.card-height {
  min-height: 140px;
  max-height: 140px;
  max-width: 156px;
  min-width: 156px;
  background-color: #FBFFFA;
}

/* Client Card Styles */
.bi-person-circle {
  color: #74A592;
}

ul.show{
 transform: unset!important;
 min-width: unset;
 padding: 0;
 inset: 0px 0px auto auto!important;
}

.cursor-pointer {
  cursor: pointer;
}

.document-card-height {
  min-height: 319px;
  max-height: 319px;
  width: 231px;
  max-width: 231px;
  background-color: #FBFFFA;
}

/* Document Card Styles */
.form-check-input:checked[type=checkbox] {
  background-color: #2E483E;
}

.badge.rounded-pill {
  border: solid 1px #CBEBC3;
  padding: 3px 7px;
}

.card-footer small {
  font-size: 12px;
  line-height: 15px;
}

aside {
  max-height: 100vh;
  width: 224px;
}

.active.tab-pane {
  background-color: #FBFFFA !important;
}

.active.nav-link {
  border-bottom-right-radius: 0 !important;
  margin-left: 0 !important;
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x) !important;
}

.sidebar-active {
  background-color: #D0F07C;
  color: #2E483E !important;
  text-decoration: none;
  margin-left: -16px;
  font-weight: 500 !important;
  padding: 0 16px;
  gap: .1rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.active .list-style::before {
  font-size: 12px;
  font-weight: 700 !important;
}

.list-style::before {
  font-size: 6px;
}

.select2-container .select2-search--inline .select2-search__field {
  height: 21px !important;
}

.badge.clickable {
  cursor: pointer;
}


.bi-hand-thumbs-up {
  color: #00A36C;
}

.bi-hand-thumbs-up-fill {
  color: #00A36C;
}

.bi-hand-thumbs-down {
  color: #FF3131;
}

.bi-hand-thumbs-down-fill {
  color: #FF3131;
}

.input {
  appearance: none;
  display: block;
  width: 100%;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  line-height: 1.25;
}

.input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #9ca3af;
}

.label {
  display: block;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.75rem 1rem;
  padding-right: 2rem;
  display: block;
  width: 100%;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 0.25rem;
  line-height: 1.25;
}

.select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #9ca3af;
}

.dropzone {
  border: 2px dashed #9ca3af;
  border-radius: 0.5rem;
}

.dropzone.dz-drag-hover {
  border: 2px dashed #e5e7eb;
}

.dropzone.dz-drag-hover .dz-message {
  opacity: 0.9;
}

.dz-progress {
  opacity: 0 !important;
}

/* Pagination Styles */
.pagination {
  margin-top: 1rem;
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(208, 240, 124, 0.25);
}

.pagination .page-link {
  transition: all 0.2s ease-in-out;
}

/* Simple Markdown Styling - Clean and Minimal */
.simple-markdown {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: none;
}

.simple-markdown h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #2E483E;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.simple-markdown h1:first-child {
  margin-top: 0;
}

.simple-markdown h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.simple-markdown h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.simple-markdown p {
  margin-bottom: 1rem;
}

.simple-markdown ul, .simple-markdown ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.simple-markdown li {
  margin-bottom: 0.25rem;
}

.simple-markdown code {
  background-color: #f8f9fa;
  color: #e83e8c;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.simple-markdown pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.simple-markdown pre code {
  background-color: transparent;
  padding: 0;
}

.simple-markdown a {
  color: #007bff;
  text-decoration: none;
}

.simple-markdown a:hover {
  text-decoration: underline;
}

.simple-markdown strong {
  font-weight: 600;
}

.simple-markdown hr {
  border: 0;
  height: 1px;
  background-color: #e9ecef;
  margin: 2rem 0;
}
