:root {
    --bs-primary: var(--brand-navy); /* Primary Brand Colour */
    --bs-secondary: var(--brand-gray); /* Secondary Brand Colour */
    --bs-link-color: var(--brand-gray);
    --bs-link-hover-color: #1e293b;
    --bs-info: var(--brand-orange); 
    --bs-navbar-active-color: var(--brand-yellow);
    --bs-info-text-emphasis: var(--brand-navy);
    --bs-info-bg-subtle: var(--brand-orange);
    --bs-info-border-subtle: var(--brand-navy);
    --bs-primary-rgb: var(--brand-navy);
    --bs-primary-bg-subtle: #37559A;
    --bs-accordion-btn-focus-border-color: #37559A;
    --bs-accordion-btn-focus-border-color
    --bs-primary-text-emphasis: white;
    --bs-table-bg: var(--brand-navy);
    
/*
    --brand-orange
    --brand-blue
    --brand-navy
    --brand-gray
    --brand-yellow
*/
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0; /* Ensures no default browser padding/margin interferes with the height */
}
.table-dark{
    --bs-table-bg: var(--brand-gray);
}
/* Ensure buttons use the new color and look right on hover */
.btn-primary {
    --bs-btn-bg: var(--brand-orange);
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--brand-orange);
    --bs-btn-hover-bg: var(--brand-gray);
    --bs-btn-hover-border-color: var(--brand-gray);
    --bs-btn-active-bg: var(--bs-primary);
    font-weight:bold;
}
.dropdown-menu{
    --bs-dropdown-link-active-bg: var(--brand-navy);
    --bs-dropdown-link-hover-bg: var(--brand-gray);
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-active-color: #fff;
}
.navbar{
/*    background-color:var(--brand-gray); */
    box-shadow: 0 4px 2px -2px var(--brand-navy);
}
.navbar-nav{
    --bs-nav-link-color: var(--brand-navy);
    --bs-nav-link-hover-color: var(--brand-navy);
    --bs-nav-link-outline-color: var(--brand-navy);
    --bs-nav-link-disabled-color: var(--brand-navy);
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    font-weight:bold;
}
.navbar-nav .nav-link:hover{
    color:var(--brand-gray);
}
.brand-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    /* This creates the 'Rocket' trail effect */
    border-top: 3px solid var(--brand-orange); 
    padding-top: 10px;
}

.brand-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #0F172A;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap; /* Prevents name from wrapping */
}
.logo{
    mix-blend-mode: multiply;
}
.bi-info-circle{
    color:var(--bs-secondary) !important;
}
/* Fix for the background utility class specifically */
.bg-primary {
    background-color: var(--bs-primary) !important;
}
textarea { 
    width:100%; height:300px; font-family: monospace; 
}
.bg-scanner {
    background-color: #06B6D4 !important;
    color: white;
}

.text-scanner {
    color: #06B6D4 !important;
}
.item-card {
    min-height: 220px;
}
.item-img { 
	## height: 100px; 
	width:100%;
	aspect-ratio: 1 / 1;
	object-fit: contain; 
	background:#f8f9fa; 
	}
#camera-area { 
	position: relative; 
	width: 100%; 
	max-width: 480px; 
	height: 320px; 
	border: 2px solid #ccc; 
	border-radius: 8px; 
	margin: 10px auto; 
	overflow: hidden; 
	background: #000; }
#camera-area video { 
	position: absolute !important; 
	top: 50%; 
	left: 50%; 
	width: 100% !important; 
	height: 100% !important; 
	object-fit: cover; 
	transform: translate(-50%, -50%); 
	z-index: 1; }
#camera-area .overlay-box { 
	position: absolute; 
	top: 50%; 
	left: 50%; 
	width: 70%; 
	height: 40%; 
	border: 3px dashed red; 
	transform: translate(-50%, -50%); 
	pointer-events: none; 
	box-sizing: border-box; 
	z-index: 10; 
}
.help-text {
	display: none;
	margin-top: 4px;
	padding: 6px;
	background: #eef7ff;
	border-left: 3px solid #0d6efd;
	font-size: 0.9rem;
	border-radius: 4px;
}
.help-active .help-text {
	display: block;
}
.help-text::before {
	content: "ℹ️ ";
	font-size: 1.1em;
	margin-right: 4px;
	vertical-align: top;
}
.inactive-row {
    opacity: 0.5;
    background-color: #f8f9fa;
}
.inactive-badge {
    font-size: 0.75rem;
}
.form-label i {
  font-size: 0.85rem; /* Make the icon slightly smaller than the text */
  margin-left: 4px;
  cursor: help;       /* Changes the mouse to a question mark on hover */
  vertical-align: middle;
}
#update-toast {
    position: fixed;
    /* Uses the dynamic height + 20px, defaults to 85px if not set */
    bottom: var(--nav-height, 60px); 
    left: 50%;
    transform: translateX(-50%) translateY(200px);
    background: #222;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10001;
    width: calc(100% - 30px); /* Margin for small screens */
    max-width: 420px;
}
#update-toast.show {
    transform: translateX(-50%) translateY(0);
}
#update-toast button {
    background: #007bff;
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}
#update-toast button:hover {
    background: #0056b3;
}
.navbar-brand img {
    max-height: 50px; /* Adjust based on your preference */
    width: auto;      /* Maintains aspect ratio */
}
.invalid-feedback {
    font-size: 0.8rem;
    font-weight: 500;
}
.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,..."); /* Bootstrap default icon */
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.edit-icon-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
/*    background: rgba(255, 255, 255, 0.8); */
    background: var(--bs-primary);
/*    color: #0d6efd; */
    color: white;
    backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    transition: transform 0.2s ease;
}
.clickable-card:hover {
    transform: translateY(-3px);
    transition: all 0.2s ease;
    border-color: #0d6efd;
    border-color:var(--bs-secondary);
}
.clickable-card:hover .edit-icon-overlay {
/*    background: #0d6efd; */
    color: var(--bs-primary);
    background: var(--bs-secondary);
    transform: scale(1.1);
}

/* Connected Tab Styling */
#restockTabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--brand-navy);
    background: #f8f9fa;
    border-radius: 0;
}

#restockTabs .nav-link.active {
    background-color: #fff !important;
    border-bottom: 3px solid var(--brand-navy); /* Your Primary Brand Color */
    color: var(--brand-navy);
}

#restockTabs .nav-item:first-child .nav-link {
    border-top-left-radius: 0.375rem;
}

#restockTabs .nav-item:last-child .nav-link {
    border-top-right-radius: 0.375rem;
}

.card-header .nav-tabs {
    border-bottom: none;
}
.accordion-button:not(.collapsed){
    color:white;
}
.accordion-button:not(.collapsed):after{
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}
.restock-qty{
    font-size: 1.25rem;
}
/* Force the floating label to stay at the top */
.form-floating > .form-control:placeholder-shown ~ label,
.form-floating > .form-select ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

/* Adjust the input padding so text doesn't overlap the fixed label */
.form-floating > .form-control,
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

/* Ensure the date placeholder (if any) or value doesn't hit the label */
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
}

