:root {
      --primary-color: #2C3E50;
      --secondary-color: #fdb833;
    --secondary-color-hover: #E3AB02;
    --secondary-color-active: #E3AB02;
      --accent-color: #E74C3C;
      --text-color: #16181b;
      --light-bg: #F4F4F4;
    }


/* Update body styles */
html, body {
    height: 100%;
    margin: 0;
    font-size: 20px;
}

body {
    /*background: url("../img/backdrop-3.png") no-repeat center center fixed;*/
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



.table-sm {
    font-size: 87.5%;
}

.alert ul,
form small.form-text ul {
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    min-width: 38px;
    text-align: center;
}



.navbar {
  background-color: transparent !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 501;
  padding: 0.5rem 1rem;
  color: var(--text-color) !important;
  transition: color 0.2s;
}

.nav-link-padding {
    padding-left: 5rem !important;
}

.nav-link-item-padding {
    padding-left: 1.5rem !important;
}

.nav-link:hover {
  color: var(--secondary-color-hover) !important;
}

.nav-link.active {
  color: var(--text-color) !important;
  border-bottom: 2px solid var(--secondary-color);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--secondary-color);
}

.btn {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color-hover);
    color: var(--text-color) !important;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover, .btn-primary:focus {
  color: var(--text-color) !important;
  background-color: var(--secondary-color-hover);
  border-color: var(--secondary-color-hover);
}

.btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle {
  background-color: var(--secondary-color-active) !important; /* fallback color */
  border-color: var(--secondary-color-active) !important;
  transform: scale(0.98);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active:focus,
.btn-primary:active.focus,
.btn-primary.active:focus,
.btn-primary.active.focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: var(--secondary-color-active) !important;
}

.btn:focus,
.btn.focus,
.btn:active:focus,
.btn:active.focus,
.btn.active:focus,
.btn.active.focus {
    box-shadow: none !important;
    outline: none !important;
}


.btn-outline-primary{
    color: var(--text-color) !important;
    border-color: var(--secondary-color-hover) !important;
    background-color: var(--secondary-color);
}

.badge {
  padding: 0.35em 0.65em;
  font-weight: 600;
}

.container {
    padding: 1rem 1rem;
    width: 100%;
    max-width: 1200px; /* or your desired max-width */
    margin: 0 auto;
}


/* Create a main content wrapper */
.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 2rem; /* Add padding at bottom */
    min-height: auto; /* Allow content to determine height */
}


/* Update footer styles */
footer {
    background-color: #222222;
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,.1);
    color: #fff;
    font-size: 0.875rem;
    flex-shrink: 0;
    width: 100%;
    position: relative; /* Change from fixed to relative */
    margin-top: auto; /* Push footer to bottom */
}


.prominent-logo {
  max-height: 120px;
  transition: transform 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
}

.navbar-brand:hover .prominent-logo {
  transform: scale(1.05);
}


/* Notification styles */
.has-notifications .fa-bell {
  color: var(--accent-color) !important;
}


/* Selected date */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-color) !important;
}

/* Today’s date */
.flatpickr-day.today {
  border-color: var(--secondary-color) !important;
}

/* Hover effect */
.flatpickr-day:hover {
  background: #fbe7b1 !important;
}

.card {
    margin-bottom: 1rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: auto; /* Change from 100% to auto */
    display: flex;
    flex-direction: column;
}


.card-header {
    border-radius: 10px 10px 0 0 !important;
    background-color: var(--secondary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Fixed height container for charts */
.chart-container {
    position: relative;
    height: 400px;  /* Fixed height for all chart containers */
    width: 100%;
    margin: auto;
}

/* Make tables fill the card body */
.table-responsive {
    height: 400px;  /* Match the height of charts */
    overflow-y: auto;
}

/* Ensure consistent card body padding */
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

/* Settings page specific styles */
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: auto; /* Change from 100% to auto */
}


.settings-card .card-body {
    height: auto;
    display: block;
}

.settings-card .list-group-flush {
    border-radius: 0 0 10px 10px;
}

.settings-card .list-group-item:last-child {
    border-radius: 0 0 10px 10px;
}

.settings-card .card-header {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
}

.card-body form {
    margin-bottom: 0;
    width: 100%;
}

/* Form field focus styles */
.form-control:focus,
.custom-select:focus {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(253, 184, 51, 0.25) !important;
    outline: 0 !important;
}

/* Style for crispy forms */
.textinput,
.textarea,
.emailinput,
.numberinput,
.select,
.passwordinput {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.textinput:focus,
.textarea:focus,
.emailinput:focus,
.numberinput:focus,
.select:focus,
.passwordinput:focus {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(253, 184, 51, 0.25) !important;
    outline: 0 !important;
}

/* Date picker focus style */
.flatpickr-input:focus {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(253, 184, 51, 0.25) !important;
    outline: 0 !important;
}

.bg-overlay {
  background-image: url('../img/backdrop-3.png');
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Push behind everything */
  pointer-events: none;  /* 🔑 This allows clicks to go through */
}

.card.bg-transparent {
  background-color: rgba(255, 255, 255, 0.85); /* White with light opacity */
  /*backdrop-filter: blur(5px); !* Optional: adds a soft blur behind *!*/
  border: 1px solid rgba(0, 0, 0, 0.1); /* Light border for clarity */
  color: #000; /* Ensures text stays dark and readable */
}

@media print {
    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .logo {
        max-width: 100%;
        height: auto;
        width: 150px;
    }

    .logo-container {
          max-width: 200px;
          text-align: left;
        }

    .terms-box {
        background-color: rgba(255, 255, 255, 0.9);
        padding: 30px;
        margin: 0 auto;
        max-width: 800px;
        color: #000;
    }

    /* Hide UI elements */
    .no-print {
        display: none !important;
    }
}

.signature-block {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sig-col {
    width: 70%;
  padding: 0 20mm;
  vertical-align: bottom; /* Align both columns at the bottom */
}

.sig-comp-col {
    width: 30%;
    padding: 0 20mm;
    vertical-align: bottom; /* Align both columns at the bottom */
}

.sig-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.sig-line-row {
    width: 65%;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.sig-label {
  font-weight: 600;
  min-width: 80px;
}

.sig-value {
  flex: 1;
  font-size: 15pt;
  color: var(--text-color);
}

.sig-line {
  display: inline-block;
  flex: 1;
  border-bottom: 1px solid #333;
  height: 14px;
  margin-left: 6px;
}

.sig-logo {
  display: block;
  max-height: 85px; /* Adjust as needed */
  max-width: 100%;
  margin-left: auto; /* Align to the right */
  object-fit: contain;
}

/* Keep everything together on a single page */
@media print {
  .signature-block {
    margin-top: 12mm;
    page-break-inside: avoid;
  }
}
