body {
  margin: 0;
  min-height: 100vh;
  background-color: #e9ecef;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* Configurator specific styles */
.provider-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.provider-btn {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  background: #f8f9fa;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-btn:hover:not(.disabled) {
  border-color: #007bff;
  background: #e3f2fd;
}

.provider-btn.active {
  border-color: #007bff;
  background: #007bff;
  color: white;
  box-shadow: 0 2px 4px rgba(0,123,255,0.25);
}

.provider-btn.oci.active {
  background: #cc0000;
  border-color: #cc0000;
  box-shadow: 0 2px 4px rgba(204,0,0,0.25);
}

.provider-btn.aws.active {
  background: #ff9900;
  border-color: #ff9900;
  box-shadow: 0 2px 4px rgba(255,153,0,0.25);
}

.provider-btn.azure.active {
  background: #0078d4;
  border-color: #0078d4;
  box-shadow: 0 2px 4px rgba(0,120,212,0.25);
}

.provider-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f9fa;
  border-color: #ddd;
  color: #6c757d;
}

.provider-btn.disabled:hover {
  border-color: #ddd;
  background: #f8f9fa;
}

/* Service Category Autocomplete Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  background: white;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  margin-top: 1px;
}

.dropdown-content {
  padding: 0;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  text-decoration: none;
  color: #212529;
  font-size: 0.9rem;
  transition: background-color 0.15s ease-in-out;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.is-active {
  background-color: #e9ecef;
  color: #1e2125;
}

.field {
  position: relative;
}

/* Input field styling for autocomplete */
#service-category-input:focus {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

#service-category-input:focus + button {
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.configuration-panel {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.config-group {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.config-group-content {
  margin-top: 1rem;
}

.range-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #007bff;
}

.cost-breakdown {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.total-cost {
  font-size: 1.25rem;
  color: #28a745;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  text-align: center;
}

.cost-details ul {
  list-style: none;
  padding: 0;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-item .description {
  font-weight: 500;
}

.cost-item .calculation {
  font-family: monospace;
  color: #6c757d;
}

.cost-item .note {
  display: block;
  color: #6c757d;
  font-style: italic;
  margin-top: 0.25rem;
}

/* Analytics Cloud and complex configuration styles */
.license-info {
  margin: 1rem 0;
  text-align: center;
}

.config-summary {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.config-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.config-summary li {
  padding: 0.25rem 0;
}

.cost-item-card {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.sku-header {
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sku-number {
  font-weight: bold;
  font-family: monospace;
  color: #495057;
}

.billing-unit {
  font-size: 0.875rem;
  color: #6c757d;
}

.calculation-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calculation-line {
  font-family: monospace;
  color: #495057;
}

.calculation-breakdown {
  color: #6c757d;
}

.cost-result {
  font-weight: bold;
  color: #28a745;
  font-size: 1.1rem;
  text-align: right;
}

.metering-note {
  background: #fff3cd;
  padding: 0.5rem 1rem;
  border-top: 1px solid #e9ecef;
  color: #856404;
}

.notification.is-info.is-light {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* Range Slider and Input Combinations */
.range-slider {
  height: 6px;
  background: #ddd;
  outline: none;
  border-radius: 3px;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #007bff;
  cursor: pointer;
  border-radius: 50%;
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #007bff;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

.config-input-number {
  text-align: center;
  font-weight: 600;
}

.range-input-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Ensure proper spacing for range controls */
.range-slider {
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.config-input-number {
  min-width: 80px;
  margin-left: 0.5rem;
}

/* Fix Bulma column spacing for range controls */
.columns.is-mobile > .column {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.columns.is-mobile > .column:first-child {
  padding-left: 0;
  padding-right: 2rem;
}

.columns.is-mobile > .column:last-child {
  padding-right: 0;
  padding-left: 2rem;
}

/* Additional spacing for range controls */
.columns.is-mobile {
  margin-bottom: 1.5rem;
}

/* Ensure slider thumb doesn't overlap input */
.range-slider::-webkit-slider-thumb {
  margin-right: 15px;
}

.range-slider::-moz-range-thumb {
  margin-right: 15px;
}

/* Additional spacing for range input containers */
.range-input-container {
  margin-bottom: 1rem;
}

/* Ensure proper spacing between slider and input field */
.config-input-number {
  margin-top: 0.5rem;
}

/* Current Estimate Section Styles */
.estimate-item {
  background: #fafafa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.estimate-item:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.estimate-items-list {
  max-height: 400px;
  overflow-y: auto;
}

#current-estimate {
  background: white;
  border: 1px solid #dbdbdb;
}

#estimate-total {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  color: #28a745;
}

.estimate-item .title.is-6 {
  margin-bottom: 0.25rem;
}

.estimate-item .subtitle.is-7 {
  margin-bottom: 0.5rem;
}

.estimate-item .tags {
  margin-bottom: 0;
}

.estimate-item .tag {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1055;
}


.login-bg {
  background-color: #e0e0e0;
}


.login-card {
  width: 100%;
  max-width: 500px;
  min-height: 375px;
}

/* Placeholder text in italics */
.placeholder-italic::placeholder {
  font-style: italic;
}

/* Outline button styled with Oracle red */
.btn-outline-oracle-red {
  color: #cc0000;
  border-color: #cc0000;
}

.btn-outline-oracle-red:hover {
  color: #fff;
  background-color: #cc0000;
  border-color: #cc0000;
}

/* AWS and Azure buttons using brand colors */
.btn-aws {
  background-color: #ff9900;
  color: #fff;
  border-color: #ff9900;
}
.btn-aws:hover {
  background-color: #e88b00;
  border-color: #e88b00;
  color: #fff;
}

.btn-oracle-red {
  background-color: #cc0000;
  color: #fff;
  border-color: #cc0000;
}
.btn-oracle-red:hover {
  background-color: #b30000;
  border-color: #b30000;
  color: #fff;
}
.btn-azure {
  background-color: #0078d4;
  color: #fff;
  border-color: #0078d4;
}
.btn-azure:hover {
  background-color: #006cbe;
  border-color: #006cbe;
  color: #fff;
}

.square-btn {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 1rem;
  margin: 0.5rem;
  border-radius: 0.75rem;
  background-color: #f8f9fa;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}
.square-btn:hover {
  background-color: #e2e6ea;
  transform: translateY(-2px);
}
.square-btn .icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.pastel-pink,
.pastel-blue,
.pastel-green,
.pastel-yellow {
  border-color: transparent;
}
.pastel-pink:hover { background-color: #ff4d6d; border-color: #ff4d6d; }
.pastel-blue:hover { background-color: #4d6dff; border-color: #4d6dff; }
.pastel-green:hover { background-color: #2ecc71; border-color: #2ecc71; }
.pastel-yellow:hover { background-color: #f1c40f; border-color: #f1c40f; }

.fade-image {
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.fade-image:hover {
  opacity: 1;
}

/* Horizontal rule used as page break with extra spacing */
.page-break {
  page-break-before: always;
  border: none;
  border-top: 1px solid #dee2e6;
  margin-top: 1.5rem;
}

/* Vertical dock for navigation */
.vertical-dock {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 75px;
  background-color: #f1f3f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  border-right: 1px solid #dee2e6;
  z-index: 1050;
}
.vertical-dock a {
  color: inherit;
  text-decoration: none;
}
.dock-icon {
  font-size: 1.875rem;
  margin: 1rem 0;
  color: #495057;
  transition: color 0.2s ease;
}
.dock-icon:hover {
  color: #0d6efd;
}

.landing-logo {
  height: 64px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

body.dark-mode .landing-logo {
  filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Card used across calculators and landing page */
.main-card {
  width: 80%;
  max-width: 1200px;
  margin: 5vh auto;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Divider used between custom and standard sections */
.section-divider-right {
  border-right: 2px solid #dee2e6;
}

/* BOM item layout */
.bom-item-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.bom-item-table td {
  width: 50%;
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  display: table-cell;
}
.bom-item-table td:first-child {
  border-right: 1px solid #dee2e6;
}
.bom-value {
  text-align: right;
  white-space: nowrap;
}
.text-right {
  text-align: right;
}

/* Totals grid at bottom of BOM */
.totals-grid {
  display: grid;
  grid-template-columns: 1fr auto;

  width: 40%;
  margin-left: auto;
}
.totals-grid .desc {
  text-align: left;
}
.totals-grid .value {
  text-align: right;
  white-space: nowrap;
}

body.dark-mode .bom-item-table td:first-child {
  border-color: #343a40;
}



/* Pastel backgrounds for admin cards */
.pastel-pink {
  background-color: #f8d7da;
}

.pastel-blue {
  background-color: #d0e3fa;
}

.pastel-green {
  background-color: #d1e7dd;
}

.pastel-yellow {
  background-color: #fff3cd;
}


@media (max-width: 768px) {
  .square-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    font-size: 1rem;
  }

  .dock-icon {
    font-size: 1.3rem;
  }

  .main-card {
    margin: 2vh auto;
    padding: 1rem;
  }
}

/* Portrait-style modals */
.modal-dialog.modal-portrait {
  max-width: 600px;
}

.modal-dialog.modal-portrait iframe {
  width: 100%;
  height: 80vh;
}

.modal-dialog.modal-portrait .modal-content {
  overflow-wrap: anywhere;
}

@page {
  margin: 0;
}

@media print {
  .vertical-dock,
  #bom-controls,
  .remove-item {
    display: none !important;
  }
}
/* Dark mode styles */
body.dark-mode {
  background-color: #121212;
  color: #f8f9fa;
}
body.dark-mode .vertical-dock {
  background-color: #1f1f1f;
  border-color: #343a40;
}
body.dark-mode .dock-icon {
  color: #dee2e6;
}
body.dark-mode .dock-icon:hover {
  color: #f8f9fa;
}
body.dark-mode .main-card {
  background-color: #1f1f1f;
  color: #f8f9fa;
  border-color: #343a40;
}
body.dark-mode .square-btn {
  /* darker backgrounds for individual pastel classes will override this */
  background-color: #3a4f6b;
  color: #d1d1d1; /* medium-light gray text */
  border-color: #566981;
}
body.dark-mode .square-btn:hover {
  background-color: #485e77;
}
body.dark-mode .pastel-pink {
  background-color: #c52231; /* darker pink */
  color: #d1d1d1;
  border-color: #9e1c28;
}
body.dark-mode .pastel-blue {
  background-color: #1669ce; /* darker blue */
  color: #d1d1d1;
  border-color: #1253a5;
}
body.dark-mode .pastel-green {
  background-color: #4b9071; /* darker green */
  color: #d1d1d1;
  border-color: #3a7259;
}
body.dark-mode .pastel-yellow {
  background-color: #e6ae00; /* darker yellow */
  color: #d1d1d1;
  border-color: #b28700;
}

/* Adjust divider color for dark mode */
body.dark-mode .section-divider-right {
  border-color: #343a40;
}

/* Dark mode styling for Bootstrap cards */
body.dark-mode .card {
  background-color: #1f1f1f;
  color: #d1d1d1;
  border-color: #343a40;
}
body.dark-mode #admin-sync-pricing {
  background-color: #ffc107;
  color: #000;
  border-color: #ffc107;
}

/* Form fields and selects in dark mode */
body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #343a40;
  color: #f8f9fa;
  border-color: #555;
}
body.dark-mode .form-control::placeholder {
  color: #ccc;
}

/* Tables and list groups */
body.dark-mode .table,
body.dark-mode .list-group-item {
  background-color: #1f1f1f;
  color: #f8f9fa;
  border-color: #343a40;
}
body.dark-mode .table thead {
  color: #f8f9fa;
}

/* BOM container */
body.dark-mode #bom-container {
  background-color: #1f1f1f;
  color: #d1d1d1;
  border-color: #343a40;
}

/* Responsive navigation menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu > li {
  position: relative;
  margin-left: 0.5rem;
}

.nav-menu .menu-link {
  display: block;
  padding: 0.5rem 0.75rem;
  background-color: #6c757d;
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
  border: none;
}

.nav-menu .menu-link:hover {
  background-color: #5a6268;
  color: #fff;
}

.nav-menu li ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #6c757d;
  border-radius: 0.25rem;
  min-width: 200px;
  z-index: 1000;
}

.nav-menu li:hover > ul.dropdown {
  display: block;
}

.nav-menu li ul.dropdown li a {
  padding: 0.5rem 0.75rem;
  display: block;
  color: #fff;
  text-decoration: none;
}

.nav-menu li ul.dropdown li a:hover {
  background-color: #5a6268;
}

body.dark-mode .nav-menu .menu-link {
  background-color: #495057;
}

body.dark-mode .nav-menu li ul.dropdown {
  background-color: #495057;
}

/* Specific coloring for landing page menu buttons */
.nav-menu .btn-azure {
  background-color: #0078d4;
  border-color: #0078d4;
  color: #fff;
}
.nav-menu .btn-azure:hover {
  background-color: #006cbe;
  border-color: #006cbe;
  color: #fff;
}

.nav-menu .btn-aws {
  background-color: #ff9900;
  border-color: #ff9900;
  color: #fff;
}
.nav-menu .btn-aws:hover {
  background-color: #e88b00;
  border-color: #e88b00;
  color: #fff;
}

.nav-menu .btn-oracle-red {
  background-color: #cc0000;
  border-color: #cc0000;
  color: #fff;
}
.nav-menu .btn-oracle-red:hover {
  background-color: #b30000;
  border-color: #b30000;
  color: #fff;
}

.nav-menu .btn-outline-oracle-red {
  background-color: transparent;
  color: #cc0000;
  border-color: #cc0000;
}
.nav-menu .btn-outline-oracle-red:hover {
  background-color: #cc0000;
  color: #fff;
  border-color: #cc0000;
}

.btn-outline-aws-gray {
  color: #f3f3f3;
  border-color: #f3f3f3;
}

.btn-outline-aws-gray:hover {
  color: #fff;
  background-color: #f3f3f3;
  border-color: #f3f3f3;
}

.btn-outline-azure-blue {
  color: #0078d4;
  border-color: #0078d4;
}

.btn-outline-azure-blue:hover {
  color: #fff;
  background-color: #0078d4;
  border-color: #0078d4;
}

.provider-toggle {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

.provider-btn {
    background-color: #f8f9fa;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.provider-btn.active {
    background-color: #007bff;
    color: white;
}

.provider-btn:not(.active):hover {
    background-color: #e2e6ea;
}

.provider-btn.active.aws {
    background-color: #FF9900; /* Amazon Orange */
    color: white;
}

.provider-btn.active.azure {
    background-color: #0078D4; /* Azure Blue */
    color: white;
}

/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #FF9900; /* AWS Orange */
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#provider-switch-label {
    margin-left: 10px;
    font-weight: bold;
}

/* Disabled admin cards */
.disabled-card {
    opacity: 0.6;
}

/* Style for buttons that trigger coming soon message */
.coming-soon-btn {
    cursor: not-allowed;
}
