/* nova_project/static/css/nova_ux.css */

/* --------------------------------------------------------------------
   Base & Navbar Styles
-------------------------------------------------------------------- */

/* Fix for content overlapping with fixed navbar */
body {
  padding-top: 100px;
  color: #333333;
}

.pb-navbar {
  padding-bottom: 60px;
}

/* Add a vertical line between navbar items */
.navbar-nav .nav-item + .nav-item {
  /* border-left: 1px solid rgba(255, 255, 255, 0.5); */
  padding-left: 15px;
  margin-left: 15px;
}

/* Using pale gold as a hover color for nav links */
.navbar-nav .nav-link:hover {
  color: #e6be8a;
}

.navbar-logo {
  width: auto;
  max-width: 100%;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

/* --------------------------------------------------------------------
   Semantic Clusters Styles
-------------------------------------------------------------------- */

/* 1. Page Header Cluster */
.page-header {
  margin-bottom: 30px;
  padding: 20px 0;
  /* border-bottom: 1px solid #ddd;*/
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 
.header-left {
}

.header-right {
}
*/
.page-title {
  font-size: 2rem;
  margin: 0;
  color: #333333; /* Primary text color */
}

.page-description {
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
}

/* Breadcrumbs styling */
.breadcrumbs {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(34, 34, 34, 0.5); /* 50% of page title color */
  margin-bottom: 10px;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumbs li + li:before {
  content: ' / ';
  padding: 0 5px;
  color: rgba(34, 34, 34, 0.5);
}

.small-caps {
  font-variant: small-caps;
  text-transform: lowercase; /* Ensures only lowercase letters appear in small caps */
  font-size: 0.875rem; /* Slightly smaller for a refined look */
}

/* Field Labels for Key-Value Pairs */
.field-label {
  font-weight: bold;
  color: #333; /* Matches the main text color */
  margin-right: 5px; /* Creates a small space between the label and value */
  display: inline-block; /* Ensures labels are on the same line as values */
}

/* Off Canvas Transaction panel */
.offcanvas.offcanvas-end {
  top: 80px; 
}

.offcanvas .offcanvas-header {
  padding-top: 0.75rem; /* adjust to page header's vertical spacing */
}

.offcanvas-bottom-half {
  --bs-offcanvas-height: 50vh;
}

/* 2. Notification & Messaging Cluster */
.notification-cluster {
  margin: 20px 0;
}

/* 3. Filtering Cluster */
.filtering-cluster {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f7f7f7;
  border: 1px solid #eee;
}

/* 4. Data Table Cluster */
.data-table-cluster {
  margin-bottom: 30px;
}

/* Center the text within the table header cells */
.data-table-cluster table thead th {
  text-align: center;
}

/* Right-align the table-pagination controls */
.table-pagination {
  margin-top: 15px;
  text-align: right;
}
.table-pagination .pagination {
  justify-content: flex-end; /* Ensures pagination items align to the right */
}

/* Hover effect for clickable rows */
table.table-bordered tbody tr.clickable-row:hover,
table.table-bordered tbody tr.clickable-row:hover td,
table.table-hover tbody tr.clickable-row:hover,
table.table-hover tbody tr.clickable-row:hover td {
  background-color: #add8e6;
  cursor: pointer;
}

/* Fixed‐layout tables with horizontal scroll on small screens */
.table-fixed {
  width: 100%;
  table-layout: fixed;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Column‐width utility classes */
.col-width-15 { width: 15%; }
.col-width-25 { width: 25%; }
.col-width-60 { width: 60%; }

/* Example utilities for future 4–6 column tables */
.col-width-10 { width: 10%; }
.col-width-20 { width: 20%; }
.col-width-30 { width: 30%; }
.col-width-40 { width: 40%; }

/* --------------------------------------------------------------------
   Dashboard Card Hover Styles
-------------------------------------------------------------------- */
a.clickable-tile:hover,
a.clickable-tile:hover .card-body {
  background-color: #add8e6; /* Adjust the hover color as needed */
  cursor: pointer;
}

/* --------------------------------------------------------------------
   Security Search Form Styles
-------------------------------------------------------------------- */
.security-search-container {
  margin-bottom: 20px;
}

.security-search-form {
  width: 500px; /* Sets a fixed width for the search form */
  position: relative; /* Needed for the absolutely positioned autocomplete results */
  margin: 0 auto; /* Centers the form horizontally */
}

.autocomplete-results {
  position: absolute;
  top: 100%; /* Positions the dropdown directly beneath the input */
  left: 0;
  width: 100%; /* Matches the form's width */
  z-index: 1000;
  background: white;
  border: 1px solid #ccc;
}

/* --------------------------------------------------------------------
   pricing Styles
-------------------------------------------------------------------- */
.chart-container {
  width: 100%;
  height: 400px;
}

/* --------------------------------------------------------------------
   Additional Styling for Layout & Components
-------------------------------------------------------------------- */

.form-group {
  margin-bottom: 15px;
}

.btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  /* padding: 0.5rem 1rem; */
  /* border: 1px solid transparent; */
  border-radius: 0.25rem;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: #003946; /* sl-blue */
  border-color: #003946;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #004c6c; /* sl-coreblue */
  border-color: #004c6c;
}

/* --------------------------------------------------------------------
   Form Error Styles
-------------------------------------------------------------------- */

/* Style Django error list output within .invalid-feedback */
.invalid-feedback .errorlist {
  list-style: none; /* Remove bullet points */
  padding-left: 0; /* Remove default left padding */
  margin: 0; /* Remove extra margin */
  font-size: 0.875rem; /* Smaller text size */
  font-style: italic; /* Italicized text */
  color: #dc3545; /* Bootstrap danger red */
  line-height: 1.2;
}

.invalid-feedback .errorlist li {
  margin-bottom: 0.25rem; /* Space between multiple error messages */
}



/* --------------------------------------------------------------------
   NOVA THEME EXTENSIONS (Merged from Style Guide)
-------------------------------------------------------------------- */

/* Root Theme Colors */
:root {
  --sl-blue:        #003946;
  --sl-yellow:      #febe10;
  --sl-Cblue:       #e1eaee;
  --sl-coreblue:    #004c6c;
  --sl-lightblue:   #38758e;
  --sl-teal:        #6ed2df;
  --sl-deepgreen:   #3d6e3d;
  --sl-mediumgreen: #63a159;
  --sl-lime:        #96d178;
  --sl-medyellow:   #ffdf87;
  --sl-warmgrey:    #a59e8c;
  --sl-medgrey:     #e0dcd1;
  --sl-gold:        #ac6100;
  --sl-deeporange:  #d9541a;
  --sl-orange:      #fc9e2d;
  --sl-warmyellow:  #fff8e0;
}

/* Typography refinement */
body {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  background-color: var(--sl-Cblue);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--sl-blue);
}

/* Additional Buttons */
.btn-warning {
  background-color: var(--sl-yellow);
  color: #000;
}

.btn-secondary {
  background-color: var(--sl-warmgrey);
  color: #fff;
}

.btn-outline-secondary {
  border-color: var(--sl-warmgrey);
  color: var(--sl-warmgrey);
}

/* Card Component Enhancements */
.card {
  border-radius: 0;
  border: 1px solid var(--sl-medgrey);
  background-color: #fff;
}

.card-header, .card-footer {
  background-color: var(--sl-Cblue);
  border-color: var(--sl-medgrey);
  font-weight: 500;
}

/* Alerts */
.alert-warning {
  background-color: var(--sl-medyellow);
  color: #332c00;
  border-color: var(--sl-yellow);
}

.alert-info {
  background-color: var(--sl-teal);
  color: #002e33;
}

/* Tables */
.table th {
  background-color: var(--sl-Cblue);
  color: var(--sl-blue);
}

.table td, .table th {
  border-color: var(--sl-medgrey);
}

/* Utility */--sl-warmyellow
.bg-nova-light { background-color: var(--sl-Cblue) !important; }
/* .bg-nova-light { background-color: var(--sl-warmyellow) !important; }*/
.bg-nova-muted { background-color: var(--sl-medgrey) !important; }
.text-nova-primary { color: var(--sl-blue) !important; }
.text-nova-yellow { color: var(--sl-yellow) !important; }
.rounded-none { border-radius: 0 !important; }

/* Dark Mode Support */
[data-theme="dark"] {
  --bs-body-bg: #1a1a1a;
  --bs-body-color: #e0e0e0;
  --bs-primary: #96d178;
  --bs-secondary: #a59e8c;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

[data-theme="dark"] .card {
  background-color: #2a2a2a;
  color: #fff;
  border-color: #444;
}

[data-theme="dark"] .btn-primary {
  background-color: #96d178;
  color: #000;
}

[data-theme="dark"] .table th {
  background-color: #444;
  color: #fff;
}


/* --------------------------------------------------------------------
   Dashboard Cleanup Enhancements
-------------------------------------------------------------------- */

.dashboard-section {
  margin-bottom: 3rem;
  padding-inline: 1rem;
}

.dashboard-section-title {
  font-size: 1.125rem;
  font-variant: small-caps;
  color: var(--sl-blue);
  border-bottom: 2px solid var(--sl-coreblue);
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
}

.clickable-tile {
  display: block;
  text-decoration: none;
  border-radius: 0;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.clickable-tile.is-clickable:hover {
  background-color: var(--sl-medyellow);
  transform: scale(1.01);
  cursor: pointer;
}

.clickable-tile .card-body {
  padding: 1.25rem;
}

.clickable-tile .card-title {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1rem;
  color: var(--sl-blue);
}

.clickable-tile .card-text {
  font-size: 2rem;
  font-weight: bold;
  color: var(--sl-coreblue);
}

#commentaryCanvas .form-select,
#commentaryCanvas .form-select option {
  color: #212529 !important;
}