/* Body and Base */

.shadow2{
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: #f6f2e9; 
  color: #333; /* dark text for readability */
  font-size: 14px !important;
  line-height: 1.5;
}

.bg-image {
  background-image: url('bg2.webp'); 
  background-size: cover;
  background-position: center;
}

.table-striped>tbody>tr:nth-of-type(odd)>*{
  background-color: #f8f6f2; 
}

tbody, td, tfoot, th, thead, tr {
    vertical-align: middle;
}

.nav-link {
  font-size: 15px !important;
}

/* Typography for main elements */
a, p, .btn, ul, input, select {
  font-size: 13px !important;
  color: #495057; /* muted dark gray text */
}

table {
  font-size: 14px !important;
  color: #495057; /* muted dark gray text */
}
a {
  text-decoration: none;
  color: #0b5ed7;
}
a:hover, a:focus {
  color: #084298;
  text-decoration: underline;
}

.bg-success2, .btn-success2{
  background-color:#006600 !important;
  color:#fff !important;
}

.bg-danger2, .btn-danger2{
  background-color:#990000 !important;
  color:#fff !important;
}

.bg-primary2, .btn-primary2{
  background-color:#00509e !important;
  color:#fff !important;
}

.bg-info2, .btn-info2{
  background-color:#42a5f5 !important;
}

.text-primary2{
 color:#00509e !important; 
}

.bg-secondary2, .btn-secondary2{
  background-color:#003366 !important;
  color: #fff !important;
}

.bg-warning2, .btn-warning2{
  background-color:#003366 !important;
  color: #fff !important;
}
/* Sidebar */
#sidebar {
  min-width: 220px;
  max-width: 220px;
  min-height: 100vh;
  background-color: #0e0e0e; /* dark slate color close to YNAB sidebar */
  color: #cbd5e1;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 1rem;
  box-shadow: 2px 0 6px rgba(0,0,0,0.15);
  font-weight: 500;
  transition: background-color 0.3s ease;
}
#sidebar .nav-link {
  color: #cbd5e1;
  padding: 0.75rem 0.75rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 0.375rem;
}
#sidebar .nav-link:hover {
  background-color: #222;
  color: #fff;
  text-decoration: none;
}
#sidebar .nav-link.active {
  background-color: #006600; /* Blue */
  color: #fff;
}
.calc .label, .calc .amt{font-size: 12px}
.logo a {
  padding-top:10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}

/* Topbar */
#topbar {
  height: 56px;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  z-index: 1030;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}

/* Content area */
.content-area {
  padding-top: 70px;
  margin-left: 223px;
  background-color: #f8f6f2;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.content-area .btn-outline-secondary{
  background-color: #f8f6f2;
  color:#000;
  border-color: #f8f6f2;
  padding: 2px 12px;
}

/* Buttons */
.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #1e40af;
  border-color: #1e40af;
  box-shadow: 0 0 8px #1e40afa0;
}


/* Checked and active buttons */
.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  background-color: #00509e !important;
  border-color: #00509e !important;
  box-shadow: 0px;
  color: #fff !important;
  text-decoration: none;
}
.col-lg-9 .btn:hover {
    color: #fff !important;
    background-color: #000 !important;
    border-color: #000!important;
    text-decoration: none !important;
}
/* Canvas charts */
canvas {
  width: 100% !important;
  margin: 0 auto;
  border-radius: 0.375rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

/* Scrollbar styling for sidebar */
#sidebar::-webkit-scrollbar {
  width: 6px;
}
#sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
