/* Import Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Global Reset & Typography */
* {
  font-family: 'Roboto', sans-serif !important;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
p,
span,
div,
a,
li,
td,
th,
label,
input,
button,
select,
textarea {
  font-family: 'Roboto', sans-serif !important;
}

/* Base Font Size */
body {
  font-size: 14px !important;
}

/* Layout Backgrounds */
.content-wrapper,
.right-side {
  background-color: #E0F2F7 !important;
  min-height: 100vh !important;
  height: auto !important;
  overflow-y: auto !important;
  /* Allow scrolling if needed */
}

/* Header & Logo */
/* Header & Logo */
.main-header .logo {
  background-color: #002B49 !important;
  /* Origina Navy */
  color: #ffffff !important;
  /* White text */
  border-bottom: 0 solid transparent !important;
  font-family: 'Roboto', sans-serif !important;
  font-weight: 400 !important;
  /* Match website */
  font-size: 24px !important;
  /* Larger, prominent size */
  letter-spacing: 1.2px !important;
  /* Match website */
  text-transform: none !important;
}

.main-header .logo:hover {
  background-color: #002B49 !important;
  /* Keep same as normal state */
}

.main-header .navbar {
  background-color: #ffffff !important;
}

/* Sidebar Toggle Button */
.main-header .sidebar-toggle {
  color: #002B49 !important;
}

.main-header .sidebar-toggle:hover {
  background-color: #f9f9f9 !important;
  color: #FF4F00 !important;
}

/* Sidebar */
.main-sidebar {
  background-color: #002B49 !important;
  padding-top: 50px !important;
}

.sidebar-menu>li.active>a,
.sidebar-menu>li:hover>a {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-left-color: #FF4F00 !important;
}

.sidebar-menu>li>a {
  border-left: 3px solid transparent;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  /* Explicitly 14px */
  white-space: normal !important;
  /* Allow text to wrap */
  height: auto !important;
  /* Allow height to grow */
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.sidebar-menu>li>a>span {
  font-size: 14px !important;
  white-space: normal !important;
  /* Ensure span wraps too */
  display: inline-block !important;
  /* Needed for some wrapping contexts */
  line-height: 1.4 !important;
}

/* Boxes / Cards */
.box {
  border-radius: 4px !important;
  box-shadow: none !important;
  border-top: 0 !important;
  background: #ffffff;
  border: 1px solid #f0f0f0 !important;
}

.box-header {
  border-top-left-radius: 4px !important;
  border-top-right-radius: 4px !important;
  padding: 15px !important;
}

.box.box-primary>.box-header {
  color: #ffffff !important;
  background: #002B49 !important;
  font-size: 14px !important;
}

.box.box-warning>.box-header {
  color: #ffffff !important;
  background: #FF4F00 !important;
}

.box.box-solid.box-primary {
  border: 0 !important;
}

.box.box-solid.box-primary>.box-header {
  background: #002B49 !important;
  background-color: #002B49 !important;
}

.box.box-solid.box-warning {
  border: 0 !important;
}

.box.box-solid.box-warning>.box-header {
  background: #FF4F00 !important;
  background-color: #FF4F00 !important;
}

/* Override Info/Blue Box with Origina Royal Blue */
.box.box-info>.box-header {
  color: #ffffff !important;
  background: #1947BA !important;
  font-size: 14px !important;
}

.box.box-solid.box-info {
  border: 0 !important;
}

.box.box-solid.box-info>.box-header {
  background: #1947BA !important;
  background-color: #1947BA !important;
}

/* Collapse Buttons */
/* Collapse Buttons - Global Override for all box types */
.box .box-header .btn-box-tool,
.btn-box-tool {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.box .box-header .btn-box-tool:hover,
.box .box-header .btn-box-tool:active,
.box .box-header .btn-box-tool:focus,
.btn-box-tool:hover,
.btn-box-tool:active,
.btn-box-tool:focus {
  background: transparent !important;
  color: #ffffff !important;
  /* Keep white on hover */
  box-shadow: none !important;
}


/* Buttons */
.btn,
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-default {
  background-color: #FF4F00 !important;
  border-color: #FF4F00 !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transition: all 0.2s ease-in-out;
  padding: 8px 20px !important;
  font-size: 14px !important;
  white-space: normal !important;
  height: auto !important;
  word-wrap: break-word !important;
}

.btn:hover,
.btn:active,
.btn:focus,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-success:hover,
.btn-success:active,
.btn-success:focus,
.btn-danger:hover,
.btn-danger:active,
.btn-danger:focus,
.btn-warning:hover,
.btn-warning:active,
.btn-warning:focus,
.btn-info:hover,
.btn-info:active,
.btn-info:focus,
.btn-default:hover,
.btn-default:active,
.btn-default:focus {
  background-color: #e04600 !important;
  border-color: #e04600 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Value Boxes */
.small-box {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.bg-orange {
  background-color: #FF4F00 !important;
}

.bg-navy {
  background-color: #002B49 !important;
}

/* Override Purple Box with Origina Royal Blue */
.bg-purple {
  background-color: #1947BA !important;
  color: #ffffff !important;
}

/* Override Blue/Aqua/Info Backgrounds with Origina Royal Blue */
.bg-blue,
.bg-aqua,
.bg-light-blue,
.label-info,
.modal-info .modal-header {
  background-color: #1947BA !important;
  color: #ffffff !important;
}

/* New Origina Teal for Legacy Perpetual Cost */
.bg-teal {
  background-color: #00ACAD !important;
  color: #ffffff !important;
}

/* Value Boxes - Equal Size */
.small-box {
  border-radius: 4px !important;
  box-shadow: none !important;
  min-height: 120px !important;
  /* Enforce minimum height */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.small-box .inner {
  padding: 10px !important;
  text-align: center !important;
  /* Center text since icons are gone */
}

.small-box h3 {
  font-size: 28px !important;
  /* Adjust font size */
  margin: 0 0 5px 0 !important;
}

.small-box p {
  font-size: 14px !important;
}

.small-box .icon {
  display: none !important;
  /* Hide icons via CSS as well to be safe */
}

/* Inputs - Target specific types to avoid breaking Selectize/Widgets */
input.form-control,
textarea.form-control,
select.form-control {
  border-radius: 6px !important;
  height: 40px !important;
  font-size: 14px !important;
}

.form-control:focus {
  border-color: #FF4F00 !important;
  box-shadow: none !important;
}

/* Allow overflow for dropdowns */
.box,
.box-body {
  overflow: visible !important;
}

/* Typography Standards - Explicitly targeting user requests */

/* "Pricing Estimator Controls" */
.sidebar-header {
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 15px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  text-transform: uppercase !important;
  /* Match menu items */
  text-align: left !important;
  color: #b8c7ce !important;
  /* Match menu item color */
}

/* "Use this exported file...", "Use these controls...", "Licenses that are normally...", "The RVTools File input..." */
.clarification-text {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  display: block !important;
}

.sidebar-text {
  color: #ffffff !important;
  /* White text as requested */
  white-space: normal !important;
  word-wrap: break-word !important;
  text-align: left !important;
}

/* Radio Buttons in Sidebar */
.sidebar-container .radio label {
  color: #ffffff !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}

/* "Choose RVTools XLSX Files" and other labels */
.control-label,
label {
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 5px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  text-transform: uppercase !important;
  /* Match menu items */
  text-align: left !important;
  color: #b8c7ce !important;
  /* Match menu item color */
}

/* Sidebar Layout */
.sidebar-container {
  padding: 15px;
  width: 100% !important;
  /* Ensure container takes full width */
  box-sizing: border-box !important;
  /* Include padding in width */
}

.form-group {
  margin-bottom: 20px !important;
}

/* Tables */
.table th {
  background-color: #002B49 !important;
  color: white !important;
  font-size: 14px !important;
}

.table td {
  font-size: 14px !important;
}

/* File Input Styling */
.shiny-input-container .progress-bar {
  font-size: 14px !important;
  line-height: 20px !important;
  /* Ensure vertical centering */
}

/* Stack the file input components: Button -> Filename -> Status */
.shiny-input-container .input-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.shiny-input-container .input-group-btn {
  width: 100% !important;
  display: block !important;
  margin-bottom: 10px !important;
  /* Separation from filename box */
}

.shiny-input-container .btn-file {
  width: 100% !important;
  border-radius: 50px !important;
  /* Match other buttons */
  text-align: center !important;
}

.shiny-input-container input.form-control {
  width: 100% !important;
  border-radius: 6px !important;
  margin-bottom: 10px !important;
  /* Separation from status */
  display: block !important;
}

/* Ensure progress bar container has spacing */
.shiny-input-container .progress {
  margin-top: 5px !important;
  margin-bottom: 15px !important;
}

/* Consistent Sidebar Alignment */
.sidebar-container {
  padding-left: 15px !important;
  padding-right: 15px !important;
  text-align: left !important;
}

/* Ensure headers in sidebar are also left-aligned if they were centered */
.sidebar-header {
  text-align: left !important;
}

/* Override any center alignment on specific divs if needed */
.sidebar-container>div {
  text-align: left !important;
}

/* Fix for Selectize Input (Dropdown) */
.selectize-input {
  height: auto !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  background-color: #ffffff !important;
  color: #333333 !important;
  /* Ensure text is visible */
}

.selectize-dropdown {
  z-index: 99999 !important;
  /* Ensure it appears above other elements */
  font-size: 14px !important;
  color: #333333 !important;
}

.selectize-dropdown-content {
  max-height: 200px !important;
}

/* Sidebar Separator */
.sidebar-separator {
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  /* Match highlighted menu item background */
  margin-top: 15px !important;
  margin-bottom: 15px !important;
  width: 90% !important;
  /* Center and limit width */
  margin-left: auto !important;
  margin-right: auto !important;
}