:root {
  --bs-body-color: #333333; 
}

/* Hide number input spinner arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Help Icon Styles */
.help-icon {
  color: #6c757d;
  cursor: help;
}

.help-icon:hover {
  color: #495057;
}

.help-tooltip {
  max-width: 400px;
  font-size: 13px;
  line-height: 1.4;
  background-color: #0dcaf0 !important;
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: left !important;
}

.help-tooltip .tooltip-arrow {
  border-top-color: #0dcaf0 !important;
}

/* Override Bootstrap tooltip styles */
.tooltip {
  --bs-tooltip-bg: #0dcaf0 !important;
  --bs-tooltip-max-width: 400px !important;
}

.tooltip .tooltip-inner {
  background-color: #0dcaf0 !important;
  max-width: 400px !important;
  text-align: left !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: #0dcaf0 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
  border-right-color: #0dcaf0 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  border-bottom-color: #0dcaf0 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
  border-left-color: #0dcaf0 !important;
}

.section-heading-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card:active {
    transform: translateY(0);
}

/* Make Processing Status and Integration Summary cards same height - but not on billing page */
.row .col-lg-6:nth-child(1) .card:not(.billing-card),
.row .col-lg-6:nth-child(2) .card:not(.billing-card) {
    min-height: 200px;
}

.row .col-lg-6 .card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.row .col-lg-6 .card .card-body > div:last-child {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Document Preview Loading Spinner */
.document-preview-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 0.375rem;
}

.document-preview-loading .spinner-border {
  width: 2rem;
  height: 2rem;
  color: #0d6efd;
}

.document-preview-loading-text {
  margin-left: 0.75rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.btn-secondary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #80654d;
  --bs-btn-border-color: #80654d;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #705943;
  --bs-btn-hover-border-color: #705943;
  --bs-btn-focus-shadow-rgb: 135, 46, 194;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #705943;
  --bs-btn-active-border-color: #705943;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #80654d;
  --bs-btn-disabled-border-color: #80654d;
}

.btn-outline-secondary {
  --bs-btn-color: #80654d;
  --bs-btn-border-color: #80654d;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #80654d;
  --bs-btn-hover-border-color: #80654d;
  --bs-btn-focus-shadow-rgb: 114, 9, 183;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #80654d;
  --bs-btn-active-border-color: #80654d;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #80654d;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #80654d;
  --bs-gradient: none;
}

.dropdown button::after {
	content: none;
	background-color: white; 
	border: 1px solid #ced4da;
}

/* Menu Background Color */
.main-nav {
	background-color: #f4f3f0 !important;
	min-width: 230px !important;
	width: 230px !important;
}

/* Menu Text Color */
#navbar-nav .nav-item .nav-link .nav-text,
.menu-title,
#navbar-nav .nav-item .nav-link .nav-icon,
#navbar-nav .sub-nav-item .sub-nav-link {
	color: #333333 !important;
	/* Dark blue-gray text */
}

/* Hover/Active state */
#navbar-nav .nav-item .nav-link:hover,
#navbar-nav .nav-item .nav-link.active {
	background-color: #ebe6e0 !important;
}

#navbar-nav .sub-nav-item .sub-nav-link:hover {
	transform: none !important;
}

.logo,
.logo-box img {
	/*filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));*/
}

.page-content {
	margin-left: 230px !important;
}

.footer {
	margin-left: 230px !important;
}

/* === INDEX.PHP === */
.video-play-icon {
	transition: transform 0.2s ease-in-out;
}

.video-card:hover .video-play-icon {
	transform: scale(1.1);
}

/* Remove animation from widget icons */
.widget-icon {
	-webkit-animation: none !important;
	animation: none !important;
}

/* === INTEGRATION_POSTING.PHP === */
#document-info {
	background-color: #f8f9fa;
	padding: 10px;
	border-radius: 5px;
	font-size: 0.9em;
}

.document-checkbox {
	transform: scale(1.2);
}

.header-checkbox {
	transform: scale(1.2);
}

.selected-row {
	background-color: #e8f5e8;
}

.table th {
	background-color: #f8f9fa;
	font-weight: 600;
}

/* === COMPANIES.PHP === */
.company-row:hover {
    background-color: #f8f9fa !important;
}

.company-row {
    transition: background-color 0.2s ease;
}

/* === REVIEW_DOCUMENTS.PHP === */
.document-item {
	padding: 15px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	transition: background-color 0.2s;
}

.document-item:hover {
	background-color: #f8f9fa;
}

.document-item.selected {
	background-color: #e3f2fd !important;
	border-left: 4px solid #2196f3;
	border-color: #2196f3 !important;
}

.document-item.editing-mode {
	background-color: #5988a6 !important;
	border-color: #5988a6 !important;
	color: white !important;
}

.document-item.editing-mode .form-label,
.document-item.editing-mode label {
	color: white !important;
}

.document-item.editing-mode .form-control-plaintext,
.document-item.editing-mode div {
	color: white !important;
}

.document-details-form .reason-text {
   color: #ffc107 !important; 
}

/* Hide document action buttons by default */
.document-actions {
	display: none !important;
}

/* Show action buttons only for selected documents */
.document-item.selected .document-actions {
	display: flex !important;
}

.document-item:last-child {
	border-bottom: none;
}

.document-preview-iframe {
	width: 100%;
	height: 600px;
	border: 1px solid #ddd;
	border-radius: 4px;
	zoom: 100%;
}

.pdf-viewer-container {
	width: 100%;
	height: 100%;
	border: 1px solid #ddd;
	border-radius: 4px;
	position: relative;
	background: #f8f9fa;
	overflow: auto;
	-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
	touch-action: pan-x pan-y; /* Enable touch panning */
}

.pdf-canvas {
	display: block;
	min-width: 100%;
	height: auto;
}

.pdf-controls {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.8);
	color: white;
	padding: 8px 12px;
	border-radius: 20px;
	z-index: 10;
	display: flex;
	gap: 10px;
	align-items: center;
}

.pdf-controls button {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
}

.pdf-controls button:hover {
	background: rgba(255,255,255,0.2);
}

.pdf-controls button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.image-viewer-container {
	width: 100%;
	height: 100%;
	border: 1px solid #ddd;
	border-radius: 4px;
	position: relative;
	background: #f8f9fa;
	overflow: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.document-preview-image {
	max-width: 100%;
	height: auto;
	max-height: 600px;
	border: 1px solid #ddd;
	border-radius: 4px;
	zoom: 110%;
}

.document-details-table {
	font-size: 0.9em;
}

.document-details-table td {
	padding: 8px 12px;
	border: 1px solid #eee;
}

.document-details-table td:first-child {
	font-weight: 600;
	background-color: #f8f9fa;
	width: 150px;
}

.line-items-container {
	max-height: 200px;
	overflow-y: auto;
	background-color: #f8f9fa;
	padding: 8px;
	border-radius: 4px;
	margin-top: 8px;
}

.line-item {
	font-size: 0.875em;
	padding: 4px 0;
	border-bottom: 1px solid #ddd;
}

.line-item:last-child {
	border-bottom: none;
}

/* Line items background matches selected document */
.document-item.selected .line-items-container {
	background-color: #f0f8ff;
}

/* Visual feedback for updated documents */
.document-item.border-success {
	border-left: 4px solid #28a745 !important;
	background-color: #f8fff8;
	transition: all 0.3s ease;
}

/* Scrollable document list */
.documents-list-container {
	overflow-y: auto;
	overflow-x: hidden;
}

/* Smooth scrolling for document list */
.documents-list-container {
	scroll-behavior: smooth;
}

/* Custom scrollbar for document list */
.documents-list-container::-webkit-scrollbar {
	width: 6px;
}

.documents-list-container::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.documents-list-container::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.documents-list-container::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

.documents-list-container .form-label {
	margin-bottom: 0.2rem;
}

/* Hide main page scrollbar while keeping scroll functionality */
html {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

/* Equal height for review areas */
.review-area-card {
	position: sticky;
	top: 20px;
	height: calc(100vh - 180px);
	max-height: calc(100vh - 180px);
}

.review-area-card .card-header {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.review-area-card .card-body {
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.review-area-card .documents-list-container {
	flex: 1;
	min-height: 0;
}

/* Make preview content fit within card */
#document-preview {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

#document-viewer {
	flex: 1;
	min-height: 0;
}

/* === ALL_DOCUMENTS.PHP === */
/* Document info styling */
#document-info {
	background-color: #f8f9fa;
	padding: 10px;
	border-radius: 5px;
	font-size: 0.9em;
}

#document-info .row>div {
	margin-bottom: 5px;
}

/* Mobile-specific styles for preview modal */
@media (max-width: 991.98px) {
	#previewModal .modal-dialog {
		margin: 0;
		height: 100vh;
	}

	#previewModal .modal-content {
		height: 100vh;
		border-radius: 0;
	}

	#previewModal .preview-iframe {
		height: calc(100vh - 170px) !important;
	}

	#previewModal #preview-img {
		max-height: calc(100vh - 170px) !important;
	}
}

/* Desktop - make it larger by default */
@media (min-width: 992px) {
	#previewModal .modal-xl {
		max-width: 90vw;
	}

	#previewModal .preview-iframe {
		height: 70vh !important;
	}

	#previewModal #preview-img {
		max-height: 70vh !important;
	}
}

/* === LOGIN & SIGNUP PAGES === */
.auth-body {
    background-color: #f4f3f0;
}

.auth-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* === SUPPORT PAGE === */
.contact-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.contact-item:last-child {
    border-bottom: none;
}

.chat-messages {
    background-color: #fafbfc;
    border-radius: 0.375rem;
    padding: 1rem;
}

.message-item {
    animation: fadeInUp 0.3s ease-in-out;
}

.message-content {
    max-width: 80%;
}

.suggested-questions .btn {
    font-size: 0.875rem;
    white-space: nowrap;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-soft {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6c757d;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === BILLING PAGE === */
.credit-package {
    cursor: pointer;
    transition: all 0.2s ease;
}

.credit-package:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.alert-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* === REVIEW DOCUMENTS PAGE === */
/* Document counter styling moved here for better organization if needed */
