:root {
  --primary-color: #2c3e50; /* Slate Blue */
  --secondary-color: #34495e; /* Darker Slate */
  --accent-color: #1abc9c; /* Teal */
  --background-color: #f4f6f9;
  --text-color: #555;
  --heading-color: #2c3e50;
  --card-bg: #ffffff;
  --warning-bg: #fffbe6;
  --warning-border: #ffe58f;
  --warning-text: #856404;
}

body {
  font-family: "Poppins", sans-serif;
  position: relative;
  background-color: rgba(244, 246, 249, 0.9); /* Slightly translucent */
  color: var(--text-color);
  backdrop-filter: blur(2px); /* Subtle blur for the body background */
  -webkit-backdrop-filter: blur(2px); /* For Safari */
}

h2,
h3,
h4,
h5 {
  color: var(--heading-color);
  font-weight: 600;
}

h2 {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.navbar {
  background-color: rgba(52, 73, 94, 0.8) !important; /* Slightly translucent */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px); /* Blur effect */
  -webkit-backdrop-filter: blur(10px); /* For Safari */
}

section {
  padding-top: 80px;
  margin-top: -70px;
  padding-bottom: 2rem;
}

.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  border-top: 4px solid var(--accent-color);
  background-color: rgba(255, 255, 255, 0.8); /* Slightly translucent */
  backdrop-filter: blur(5px); /* Blur effect */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

#financialDisclaimer {
  background-color: rgba(255, 251, 230, 0.8); /* Slightly translucent */
  border-left: 5px solid var(--warning-border);
  border-radius: 8px;
  color: var(--warning-text);
  backdrop-filter: blur(3px); /* Subtle blur */
  -webkit-backdrop-filter: blur(3px); /* For Safari */
}

#financialDisclaimer h4 {
  color: var(--warning-text);
  font-weight: 600;
}

#financialDisclaimer .bi {
  color: #ffc107;
}

.metric-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: rgba(238, 241, 245, 0.8); /* Slightly translucent */
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(3px); /* Subtle blur */
  -webkit-backdrop-filter: blur(3px); /* For Safari */
}
.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.metric-card h5 {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 500;
}
.metric-card p {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0;
}

.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

.table-responsive {
  backdrop-filter: blur(2px); /* Subtle blur for tables */
  -webkit-backdrop-filter: blur(2px); /* For Safari */
  border-radius: 8px; /* Match card border-radius */
}

.interactive-controls .form-label {
  font-weight: 500;
}

.interactive-controls .form-label .slider-value {
  font-weight: 600;
  color: var(--accent-color);
}

.sales-projection-card .form-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.sales-projection-card .form-control {
  font-weight: 600;
}

/* Scenario Management Button Styling */
#scenarios .btn {
  margin-right: 10px; /* Space between buttons */
  margin-bottom: 10px; /* Space below buttons on smaller screens */
}

#scenarios .btn:last-child {
  margin-right: 0; /* No right margin for the last button */
}

@media (max-width: 767.98px) {
  #scenarios .btn {
    width: 100%; /* Full width buttons on small screens */
    margin-right: 0;
  }
}

.footer {
  background-color: rgba(52, 73, 94, 0.8); /* Slightly translucent */
  color: #bdc3c7;
  padding: 2rem 0;
  margin-top: 2rem;
  backdrop-filter: blur(5px); /* Subtle blur */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  transition: color 0.2s ease-in-out;
}

.footer a:hover {
  color: var(--accent-color);
}

/* Button Styles */
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #16a085; /* Darker shade of accent-color */
  border-color: #16a085;
}

.btn-outline-primary {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Modern Checkbox Styles */
input[type="checkbox"] {
  /* Hide the default checkbox */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Basic styling for the custom checkbox */
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
}

input[type="checkbox"]:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.4); /* Accent color with transparency */
}

/* Checkmark for checked state */
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Datatables Pagination Styling */
.active > .page-link {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}
.page-link {
  color: var(--primary-color);
  transition: all 0.2s ease-in-out;
}
.page-link:hover {
  background-color: var(--primary-color);
  color: white;
}

table th {
  background-color: var(--primary-color) !important;
  color: white !important;
  text-align: center;
}

table td {
  text-align: left;
}


#raw-material-table td {
  min-width: 100px;
}

/* Sales Projection Table Specific Styles */
.sales-projection-card .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
  backdrop-filter: blur(2px); /* Subtle blur for tables */
  -webkit-backdrop-filter: blur(2px); /* For Safari */
  border-radius: 8px; /* Match card border-radius */
}

/* Custom styles for smaller remove buttons in tables */
td .btn.btn-sm {
    padding: 0.1rem 0.4rem;
    line-height: 1;
    font-size: 0.9rem;
}

td .btn.btn-sm .bi {
    vertical-align: -0.1em;
}


.sales-projection-card table {
  width: 100%;
  min-width: 700px; /* Ensure table doesn't get too squished on small screens */
  border-collapse: separate;
  border-spacing: 0;
}

.sales-projection-card th,
.sales-projection-card td {
  padding: 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.sales-projection-card th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sales-projection-card tbody tr:hover {
  background-color: #f8f9fa;
}

.sales-projection-card td:first-child {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.sales-projection-card td:nth-child(2) {
  font-weight: 500;
  color: var(--accent-color);
  white-space: nowrap; /* Prevent variable cost from wrapping */
}

.sales-projection-card .form-control {
  text-align: center;
  max-width: 100px; /* Limit input width */
  margin: auto; /* Center inputs */
}

.sales-projection-card th.month-header {
  white-space: nowrap;
  min-width: 120px;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color);
  border-radius: 10px;
  border: 3px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
}



#amortization-table .dataTables_wrapper .dataTables_paginate .paginate_button.current, 
#amortization-table .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--accent-color);
    color: white !important;
    border-color: var(--accent-color);
}




