.form-control.is-valid {
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    background-image: none;
}

.form-control.is-valid:focus {
    box-shadow: none;
    border-bottom-width: 2px;
}

.form-check-input.is-valid~.form-check-label, .was-validated .form-check-input:valid~.form-check-label {
    color: var(--bs-primary-text-emphasis);
}

.form-select.is-valid:not([multiple]):not([size]), 
.form-select.is-valid:not([multiple])[size="1"], 
.was-validated .form-select:valid:not([multiple]):not([size]), 
.was-validated .form-select:valid:not([multiple])[size="1"] {
    --bs-form-select-bg-icon: ""; 
}

.text-small {
    font-size: 75%;
}

.outlined {
    outline: 1px dashed red;
}

.btn-icon-big i {
    font-size: 150%;
    float: left;
    margin: -0.25rem 0 -0.25rem 0 !important
}

.header-dark {
    background-color: var(--bs-dark);
    color: var(--bs-white);
}

/* Using Skote theme variables only - no custom overrides */

/* Typography - minimal overrides */
.section-title {
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

input:checked {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

/* Buttons - Using Skote defaults only */

/* Card hover effect - only for clickable cards */
a .card:hover,
.card.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(85, 110, 230, 0.15);
  border-color: var(--bs-primary);
  transition: all 0.25s ease;
}

/* Section backgrounds - using Skote standards */
.section {
  border-radius: var(--bs-border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Sidebar - using Skote card styling */
.sidebar .card {
  height: 100%;
  border-radius: var(--bs-border-radius-lg);
  border: none;
  box-shadow: var(--bs-box-shadow-sm);
}
/* Use standard heading classes from Skote */

/* Modal - using Skote defaults */
.modal-content {
  border-radius: var(--bs-border-radius);
}

/* Icon styling - use standard classes */
.icon-lg {
  font-size: 2rem;
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(85, 110, 230, 0.2) 0%, var(--bs-primary) 100%);
  color: white;
  border-radius: var(--bs-border-radius-lg);
}

/* --- Modules wrapper - aligned with Skote --- */
.modules {
    background-color: var(--bs-white);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-radius: var(--bs-border-radius-lg);
}

/* --- Module list on the left --- */
.modules-list {
    border: var(--bs-border-width) solid var(--bs-border-color);
    padding: 1rem;
    width: 30% !important;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-box-shadow-sm);
    background-color: var(--bs-tertiary-bg);
}

/* Module item */
.module-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.625rem;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-white);
    border: var(--bs-border-width) solid var(--bs-border-color);
    color: var(--bs-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.module-item i {
    font-size: 1.5rem;
    color: var(--bs-primary);
}

/* Hover effect: lift + primary border */
.module-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 110, 230, 0.15);
    border-color: var(--bs-primary);
    background-color: #fff;
}

/* --- Modules container on the right --- */
.modules-container {
    overflow-y: auto;
    height: 750px;
    margin-top: 0;
    width: 67% !important;
    padding: 1rem;
    border-radius: var(--bs-border-radius-lg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    background-color: var(--bs-white);
    box-shadow: var(--bs-box-shadow-sm);
}

/* Lists inside details */
.modules-container ul {
    padding-left: 1rem;
}

.modules-container a {
    text-decoration: underline;
    color: var(--bs-primary);
}

/* Details sections */
.module-details fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.module-details h5,
.module-details h6 {
    color: var(--bs-dark);
}

.module-details .bg-light {
    background-color: var(--brand-neutral-light) !important;
}

.img-thumbnail {
    border: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modules-list {
        width: 100% !important;
        margin-bottom: 15px;
    }
    .modules-container {
        width: 100% !important;
    }
}

.modules-header-card {
    border: none;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-box-shadow-sm);
    background: var(--bs-white);
    margin-bottom: 1.25rem;
    transition: all 0.2s ease-in-out;
}

.modules-header-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(85, 110, 230, 0.15);
    border: 1px solid var(--bs-primary);
}

.modules-header-card .card-body h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--bs-dark);
}

/* Optional: add some spacing around the included modules content */
.modules-content-wrapper {
    margin-top: 15px;
}

/* Layout wrapper and main content - using Skote variables */
#layout-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
    background-color: var(--bs-tertiary-bg);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bs-body-bg);
    padding: 0;
}

@media (min-width: 992px) {
    .main-content {
        padding: 20px;
    }
}

.vertical-menu {
    background-color: var(--bs-dark) !important;
}

.navbar-brand-box, body[data-topbar="dark"] #page-topbar {
    background-color: var(--bs-white) !important;
}

.page-content {
    flex: 1;
    margin-top: 0 !important;
}

.topnav {
    background: inherit !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    position: relative !important;
}

.topnav .navbar-nav .nav-item .nav-link.active, .topnav .navbar-nav .nav-link:focus, .topnav .navbar-nav .nav-link:hover,
.topnav .navbar-nav .dropdown-item:focus, .topnav .navbar-nav .dropdown-item:hover,
.topnav .navbar-nav .dropdown.active > a, .topnav .navbar-nav .dropdown-item.active {
    color: var(--bs-primary) !important;
}

.required {
  color: var(--bs-danger);
}

/* Page title - aligned with Skote */
.page-title-box {
    padding: 1.25rem 1rem;
    background-color: var(--bs-white);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
    margin-bottom: 1.25rem;
}

.page-title-box h4 {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--bs-emphasis-color);
}

.page-title-right .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Containers and cards - using Skote standards */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.card {
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
    margin-bottom: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-type-radio > input[type="radio"] {
    appearance: none;
    position: absolute;
    opacity: 0;
}

.card-type-radio > input[type="radio"]:checked + label {
    border: 2px solid var(--bs-primary);
    box-shadow: 0 0 10px 2px rgba(85, 110, 230, 0.13);
}

.card-type-radio label {
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.card-type-radio label:hover {
    box-shadow: 0 0 8px 1px #5A6DDE11;
}

.product-type-icon {
    height: 60px !important;
}

/* Service type selection - specific styling */
.service-type-radio {
    appearance: none;
    position: absolute;
    opacity: 0;
}

.service-type-radio:checked + label.card-type-radio {
    border: 2px solid var(--bs-primary);
    box-shadow: 0 0 10px 2px rgba(85, 110, 230, 0.13);
}

/* Service type selection - error state */
.service-type-radio.is-invalid + label.card-type-radio {
    border-color: var(--bs-danger);
}

.service-type-radio.is-invalid + label.card-type-radio:hover {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-danger-rgb), 0.15);
}

a.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Use standard text-primary and link classes from Skote */

.card h6 {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.config-section h6 {
    text-transform: uppercase;
    color: var(--bs-gray-600);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.config-row {
    margin-bottom: 0.4rem;
}

.config-label {
    color: var(--bs-gray-600);
    font-size: 0.8rem;
    text-align: right;
    padding-right: 0.5rem;
}

.config-value {
    font-weight: 500;
    font-size: 0.9rem;
}

.config-note {
    font-size: 0.75rem;
    color: var(--bs-gray-500);
    font-style: italic;
}

.config-section i {
    color: var(--bs-primary);
}

.product-status-development {
    background-color: white;
    border: 1px solid #f1b44c;
    color: #f1b44c;
}

.product-status-released {
    background-color: white;
    border: 1px solid #34c38f;
    color: #34c38f;
}

.product-status-deprecated {
    background-color: white;
    border: 1px solid #f46a6a;
    color: #f46a6a;
}

/* --- Compact grid layout for desktop --- */
@media (min-width: 992px) { /* lg and up */
  .config-sections-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 1.5rem; /* space between cards */
  }

  .config-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
}

.brand-card ul.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-card ul.stats-list li {
    font-size: 0.85rem;
    color: var(--bs-secondary-color) !important;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* subtle divider between stats */
    display: flex;
    justify-content: center;
}

.brand-card ul.stats-list li:last-child {
    border-bottom: none;
}

.brand-card ul.stats-list li span.stat-number {
    font-weight: 700;
    color: var(--bs-primary); /* brand accent for numbers */
}

/* Use standard .badge-outline-primary from Skote */

.product-card {
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--bs-box-shadow-sm);
  transition: all 0.25s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(85, 110, 230, 0.15);
  border-color: var(--bs-primary);
}

.product-thumb { width: 56px; height: 56px; display:flex; align-items:center; justify-content:center; }
.chip {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  border-radius: var(--bs-border-radius);
  border: var(--bs-border-width) solid var(--bs-border-color);
  color: var(--bs-secondary);
  background: var(--bs-white);
}
.chip-active {
  border: 0 !important;
  color: white !important;
  background-color: var(--bs-primary) !important;
}

.module-imgbox {
  height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}

.img-thumbnail-product {
    width: 120px;
    background-color: inherit !important;
}

.no-products {
  background-color: var(--brand-neutral-light);
  padding: 0.5rem;
  text-align: center;
}

.field-hint{
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}

.field-hint__icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bs-border-radius-pill);
  border: var(--bs-border-width) solid var(--bs-border-color);
  color: var(--bs-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.field-hint__text{
  min-width: 0;
}
