/* ============================================================
   Design System — CSS Custom Properties
   ============================================================ */
:root {
  --primary: #4F46E5;
  --primary-light: #EEF2FF;
  --primary-hover: #4338CA;
  --discovery: #0891B2;
  --discovery-light: #ECFEFF;
  --discovery-hover: #0E7490;
  --success: #059669;
  --surface: #F8FAFC;
  --border: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ============================================================
   Homepage enhancements
   ============================================================ */

/* Hero title */
.hero-title {
    letter-spacing: -0.5px;
}

/* Feature card left-border color accents */
.feature-card-primary { border-left: 3px solid #0d6efd !important; }
.feature-card-success { border-left: 3px solid #198754 !important; }
.feature-card-info    { border-left: 3px solid #0dcaf0 !important; }
.feature-card-warning { border-left: 3px solid #ffc107 !important; }

/* How It Works section */
.how-it-works-section {
    padding: 0.6rem 0.5rem 0.4rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.hiw-step {
    padding: 0.4rem 0.5rem;
}

.hiw-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .how-it-works-section .col-md-4:not(:last-child) .hiw-step {
        position: relative;
    }
    .how-it-works-section .col-md-4:not(:last-child) .hiw-step::after {
        content: '→';
        position: absolute;
        right: -0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
        font-size: 1.2rem;
    }
}

/* Badge alignment — push badges to bottom of every feature card */
.feature-card .card-body {
    display: flex;
    flex-direction: column;
}

.feature-card .card-text {
    flex: 1;
}

/* ---- Split CTA ---- */
.split-cta-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 580px;
    margin: 0 auto;
}

.split-cta-side {
    flex: 1;
    padding: 1.4rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.25s ease;
    user-select: none;
    position: relative;
}

/* Gradient bar that expands from centre on hover */
.split-cta-side::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    border-radius: 2px 2px 0 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.split-cta-side:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.split-cta-side:hover {
    background: rgba(13, 110, 253, 0.04);
}

/* Icon bounce + glow */
.split-cta-side:hover .split-cta-icon {
    animation: iconBounce 0.42s ease forwards;
    filter: drop-shadow(0 0 5px rgba(13, 110, 253, 0.45));
}

/* Title colour shift */
.split-cta-side:hover .split-cta-title {
    color: #0d6efd;
}

.split-cta-title {
    transition: color 0.2s ease;
}

@keyframes iconBounce {
    0%   { transform: scale(1)    translateY(0); }
    35%  { transform: scale(1.35) translateY(-4px); }
    65%  { transform: scale(0.95) translateY(0); }
    100% { transform: scale(1.12) translateY(0); }
}

.split-cta-left {
    border-right: none;
}

.split-cta-right {
    border-left: none;
}

.split-cta-icon {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.split-cta-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
}

.split-cta-sub {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

/* Center orb */
.cta-orb {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.15), 0 4px 12px rgba(13, 110, 253, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.cta-orb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(13, 110, 253, 0.15), 0 6px 20px rgba(13, 110, 253, 0.4);
}

.cta-orb:active {
    transform: scale(0.97);
}

.orb-icon {
    font-size: 1.5rem;
}

.orb-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Mobile: stack vertically */
@media (max-width: 576px) {
    .split-cta-wrapper {
        flex-direction: column;
        border-radius: 1rem;
    }

    .split-cta-side {
        width: 100%;
        padding: 1rem;
    }

    .split-cta-left {
        border-bottom: 1px solid #e9ecef;
    }

    .split-cta-right {
        border-top: 1px solid #e9ecef;
    }

    .cta-orb {
        width: 76px;
        height: 76px;
        margin: -1px 0;
    }
}

/* Fix alert dismiss button vertical alignment */
.alert.d-flex .btn-close {
    position: static;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
}

/* ============================================================
   End homepage enhancements
   ============================================================ */

/* Update the body styling to ensure proper spacing */
body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

/* Page background with subtle gradient */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
}

/* Header styles */
header.bg-white {
    transition: all 0.3s ease;
}

header.bg-white:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

header .bi-boxes {
    transition: transform 0.3s ease;
}

header:hover .bi-boxes {
    transform: scale(1.1);
}

/* Feature cards */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Feature icon styling */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

/* Enhanced feature icon styling */
.feature-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-icon::before {
    transform: translateX(100%);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.feature-icon i {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Action buttons styling */
.action-buttons-container {
    margin-top: 2rem;
}

.action-button-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.action-button-card .btn {
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.action-button-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.action-button-card .btn i {
    font-size: 1.5rem;
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* Pulse animation for buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* Toast container styles */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: auto;
    max-width: 90%;
}

.toast {
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto 0.5rem auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
    /* Ensure toasts are visible */
}

.toast .toast-header {
    color: white;
    padding: 0.5rem 0.75rem;
}

.toast .toast-body {
    padding: 0.75rem;
    background-color: white;
    font-size: 14px;
}

/* Carousel customization */
.carousel-indicators {
    position: static;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    opacity: 0.5;
}

.carousel-indicators .active {
    background-color: #0d6efd;
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 0.5rem;
    margin: 0 0.5rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Loading spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom styles for the metadata type selection */
.metadata-type-item.active {
    border-left: 4px solid #0d6efd;
    font-weight: bold;
}

.metadata-type-item {
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.metadata-type-item:hover {
    border-left-color: #adb5bd;
}

/* Selection card active state */
.selection-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.selection-card.active {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* For browsers that don't support scroll-behavior */
@media (prefers-reduced-motion: no-preference) {
    .smooth-scroll {
        scroll-behavior: smooth;
    }
}

.premium {
    position: relative;
    float: right;
    left: 5%;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 92vh;
}

.content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alert-container {
    padding-top: 20px;
}

.loginArea {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

button,
.btn,
.form-check-input,
.page-link {
    cursor: pointer;
}

/* Update footer styling to ensure it stays at the bottom without overlapping content */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    /* Fixed height for the footer */
    /* background-color: #f8f9fa; */
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

/* Add margin to the main container to ensure space for the footer */
.container {
    max-width: 1140px;
    /* margin-bottom: 60px; */
    /* Match the padding-bottom of body */
}

#contactModal .modal-dialog {
    max-width: 500px;
}

.pagination {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.pagination .page-item {
    margin-bottom: 0.25rem;
}

.pagination .page-link {
    min-width: 40px;
    text-align: center;
}

.pagination .ellipsis .page-link {
    background-color: transparent;
    border: none;
    color: #6c757d;
    cursor: default;
}

.org-badge {
    background-color: #007bff;
    color: white;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-weight: bold;
}

/* Navbar and dropdown styling */
.navbar-brand {
    font-weight: bold;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-item i {
    margin-right: 8px;
}

.btn-group ul.dropdown-menu.dropdown-menu-end.show {
    width: -webkit-fill-available;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .loginArea {
        padding: 1.5rem !important;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }
}

/* For mobile devices */
@media (max-width: 576px) {
    .pagination .page-link {
        min-width: 35px;
        padding: 0.25rem 0.5rem;
    }

    .action-button-card .btn {
        padding: 1rem;
    }

    .action-button-card .btn i {
        font-size: 1.25rem;
    }
}

/* Error and success states */
.error-table {
    border: 3px solid red;
}

.success-table {
    border: 3px solid green;
}

.error-toast {
    position: fixed;
    top: 155px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    max-width: 350px;
}

/* Misc utilities */
.version-number {
    color: #6c757d;
}

select#type {
    cursor: pointer;
}

#metadataItems .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.supportModal {
    max-height: 500px;
    overflow-y: scroll;
}

#orgList,
#repoList {
    max-height: 300px;
    overflow-y: auto;
}

#paginationControls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

/* Modal styling */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #f8f9fa;
}

.user-dropdown .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Add this specific style for the user dropdown */
#userDropdown::after {
    display: inline-block !important;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Ensure conversion log is always visible */
#conversionLog,
#repoCreationLog,
#backupConversionLog {
    display: block !important;
    min-height: 100px;
    border: 1px solid #e9ecef;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Add some styling for log entries */
#conversionLog div,
#repoCreationLog div,
#backupConversionLog div {
    padding: 2px 0;
    border-bottom: 1px dotted #e9ecef;
}

/* Add alternating row colors for better readability */
#conversionLog div:nth-child(odd),
#repoCreationLog div:nth-child(odd),
#backupConversionLog div:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Fix for dropdown toggle split buttons */
.dropdown-toggle-split::after {
    margin-left: 0;
}

/* Fix for sr-only class in Bootstrap 5 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure the caret appears in split buttons */
.btn-group .dropdown-toggle-split::after {
    display: inline-block;
}

.btn:not(.dropdown-toggle):not(.dropdown-toggle-split):after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn.dropdown-toggle-split::after {
    display: inline-block !important;
    margin-left: 0;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    position: static;
    opacity: 1;
    transform: none;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
}

/* Add these styles at the end of the file */

/* Metadata status log styling */
#metadataStatusLog {
    display: block !important;
    min-height: 100px;
    border: 1px solid #e9ecef;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Add some styling for log entries */
#metadataStatusLog div {
    padding: 2px 0;
    border-bottom: 1px dotted #e9ecef;
}

/* Add alternating row colors for better readability */
#metadataStatusLog div:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Status colors */
#metadataStatusLog .text-success {
    color: #28a745 !important;
}

#metadataStatusLog .text-danger {
    color: #dc3545 !important;
}

#metadataStatusLog .text-warning {
    color: #ffc107 !important;
}

/* Animation for the progress bar */
@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }

    to {
        background-position: 0 0;
    }
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

/* Metadata Activity Log Styles */
#metadataActivityLog {
    font-size: 0.85rem;
}

#metadataActivityLog .list-group-item {
    padding: 0.5rem 0.75rem;
    border-left: none;
    border-right: none;
}

#metadataActivityLog .smaller {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Progress container styles */
#metadataProgressContainer .card-header {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 0.5rem 0.75rem;
}

#metadataProgressContainer .progress-bar {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Statistics styles */
#metadataProgressContainer .statistics-card {
    height: 100%;
}

#metadataProgressContainer .statistics-value {
    font-weight: 600;
    color: #0d6efd;
}

/* Add these styles for the collapsible progress container */
#metadataProgressContainer {
    transition: all 0.3s ease;
}

#metadataProgressContainer .card-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#metadataProgressContainer .card-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#progressContainerBody.collapsing {
    transition: height 0.35s ease;
}

#toggleProgressContainer {
    transition: transform 0.2s ease;
}

#toggleProgressContainer:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Add specific margin to action buttons container */
.action-buttons {
    margin-bottom: 1rem;
    /* Extra margin for action buttons */
}

/* Add this class to ensure content doesn't get hidden under footer */
.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 2rem;
}

/* Metadata Filter Card Styling */
.metadata-filter-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.metadata-filter-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Custom Radio Cards */
.custom-radio-card .form-check-input {
    position: absolute;
    opacity: 0;
}

.custom-radio-card .form-check-label {
    cursor: pointer;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.custom-radio-card .form-check-input:checked+.form-check-label {
    background-color: #e9f0ff;
    border-color: #0d6efd;
    color: #0d6efd;
    box-shadow: 0 0.125rem 0.25rem rgba(13, 110, 253, 0.2);
}

.custom-radio-card .form-check-label:hover {
    background-color: #e9ecef;
}

/* Custom Range Slider */
.custom-range::-webkit-slider-thumb {
    background: #0d6efd;
}

.custom-range::-moz-range-thumb {
    background: #0d6efd;
}

.custom-range::-ms-thumb {
    background: #0d6efd;
}

/* Badge styling */
.badge.rounded-pill {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.35em 0.65em;
}

/* Disabled button styling */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* Spinner animation */
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Filter criteria section styling */
.filter-criteria-container {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.filter-criteria-container:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.filter-criteria-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    color: #333;
    font-weight: 600;
}

.filter-criteria-header i {
    color: #0d6efd;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Update the custom-tooltip class */
.custom-tooltip {
    --bd-violet-bg: rgba(92, 68, 155, 0.95);
    /* Define a solid purple background */
    --bs-tooltip-bg: var(--bd-violet-bg);
    --bs-white: #fff;
    --bs-tooltip-color: var(--bs-white);
    --bs-tooltip-opacity: 1;
    /* Force full opacity */
}

/* Add this to ensure the tooltip is visible */
.tooltip.custom-tooltip {
    opacity: 1 !important;
}

.tooltip.custom-tooltip .tooltip-inner {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

/* Make info icon more noticeable */
.info-icon-tooltip {
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.info-icon-tooltip:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd !important;
    transform: scale(1.1);
}

.info-icon-tooltip .bi-info-circle-fill {
    font-size: 16px;
}

/* Enhanced styling for the Validate Only checkbox */
.validate-only-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border: 2px solid #0d6efd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.15);
    transition: all 0.3s ease;
}

.validate-only-section:hover {
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

.validate-only-section .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #0d6efd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.validate-only-section .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}

.validate-only-section .form-check-label {
    font-weight: 600;
    color: #0d6efd;
    cursor: pointer;
}

.validate-only-section .form-text {
    color: #495057;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Add a subtle animation when checked */
.validate-only-section .form-check-input:checked {
    animation: checkboxPulse 0.3s ease-in-out;
}

@keyframes checkboxPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Repository dropdown styling */
#repoDropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
}

#repoDropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border: none;
    cursor: pointer;
}

#repoDropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

#repoDropdown .dropdown-item:active {
    background-color: #e9ecef;
}

#repoDropdown .dropdown-divider {
    margin: 0.5rem 0;
}

/* Clear button styling */
#clearRepoName {
    border: none;
    background: none;
    padding: 0.25rem;
}

#clearRepoName:hover i {
    color: #dc3545 !important;
}

/* Input with dropdown styling */
.position-relative .form-control:focus+.dropdown-menu {
    display: block;
}

/* ============================================================
   Dashboard Redesign 2026
   ============================================================ */

/* --- HEADER --- */
header.bg-white {
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.org-badge-production {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    border-radius: 20px;
    padding: 0.3em 0.9em;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    display: inline-block;
}

.org-badge-sandbox {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
    border-radius: 20px;
    padding: 0.3em 0.9em;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    display: inline-block;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.btn-user-pill {
    background: white !important;
    border: 1.5px solid var(--border) !important;
    border-right: none !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    border-radius: 24px 0 0 24px !important;
    padding: 0.3rem 0.65rem 0.3rem 0.35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
}

.btn-group:hover .btn-user-pill,
.btn-group:hover .btn-user-split {
    border-color: var(--primary) !important;
}

.btn-user-split {
    border: 1.5px solid var(--border) !important;
    border-left: 1px solid var(--border) !important;
    border-radius: 0 24px 24px 0 !important;
    background: white !important;
    color: var(--text-secondary) !important;
    padding: 0.3rem 0.65rem !important;
    transition: all 0.2s ease !important;
}

.btn-user-split:hover {
    background: var(--surface) !important;
}

/* --- SELECTION CARDS --- */
#selectionMethodCards {
    min-height: calc(100vh - 300px);
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    justify-content: center;
}

/* When collapsed to just the toggle button, shrink the container */
#selectionMethodCards:has(#selectionCardsToggle) {
    min-height: 0 !important;
    margin-bottom: 0.5rem !important;
}

.selection-card-new {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    background: white;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer;
    padding: 1.75rem 1.5rem !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm) !important;
}

.selection-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--card-accent, var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.selection-card-new:hover::before,
.selection-card-new.active::before {
    transform: scaleX(1);
}

.selection-card-new:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(0,0,0,0.06) !important;
}

.selection-card-new.active {
    border-color: var(--card-accent, var(--primary)) !important;
}

.card-icon-bubble {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.card-icon-bubble i {
    font-size: 1.6rem;
}

.selection-card-new .card-title-new {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.selection-card-new .card-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.28rem 0;
}

.feature-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--card-accent, var(--primary));
    flex-shrink: 0;
}

.card-action-btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.875rem !important;
    border: none !important;
    width: 100%;
    transition: all 0.2s ease !important;
}

.card-action-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* --- BACK BREADCRUMB --- */
.back-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.85rem 0.3rem 0.6rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
}

.back-breadcrumb:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none !important;
}

/* --- DISCOVERY FILTER CARD --- */
.filter-card-new {
    background: var(--surface);
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 1.5rem;
}

.filter-card-new .card-body {
    padding: 1.75rem !important;
}

.filter-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem !important;
}

.filter-section-title i {
    color: var(--discovery);
    font-size: 1.1rem;
}

/* Segmented author toggle */
.author-toggle {
    display: inline-flex;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.custom-radio-card .form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.author-toggle-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1.1rem !important;
    border-radius: 7px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent !important;
    border: none !important;
    white-space: nowrap;
    user-select: none;
    margin: 0 !important;
}

.author-toggle-btn:hover {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
}

.custom-radio-card .form-check-input:checked + .author-toggle-btn {
    background: var(--discovery) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

/* Date range */
.date-range-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}

.range-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.days-badge-new {
    background: var(--discovery) !important;
    color: white !important;
    padding: 0.2em 0.75em !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

.form-range {
    accent-color: var(--discovery);
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    width: 20px !important;
    height: 20px !important;
    background: var(--discovery) !important;
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.4) !important;
}

.form-range::-moz-range-thumb {
    width: 20px !important;
    height: 20px !important;
    background: var(--discovery) !important;
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.4) !important;
    border: none !important;
}

.range-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

/* Discover button */
.btn-discover {
    background: linear-gradient(135deg, var(--discovery), var(--discovery-hover)) !important;
    border: none !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 0.65rem 1.75rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3) !important;
    transition: all 0.2s ease !important;
}

.btn-discover:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.4) !important;
}

.btn-discover:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* --- PROGRESS CONTAINER --- */
#metadataProgressContainer {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

#metadataProgressContainer .card-header {
    background: white !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

#metadataProgressContainer .progress {
    background: #D1FAE5 !important;
    border-radius: 8px !important;
    height: 20px !important;
    border: 1px solid #A7F3D0 !important;
    overflow: hidden !important;
}

#metadataProgressBar {
    background: linear-gradient(90deg, #059669, #0891B2) !important;
    background-color: #059669 !important;
    border-radius: 8px !important;
    transition: width 0.5s ease !important;
    min-width: 3% !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: white !important;
    line-height: 20px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* Remove stripes from progress bar */
#metadataProgressBar.progress-bar-striped {
    background-image: none !important;
}

.stat-mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.stat-mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.stat-mini-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-mini-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* Activity log items */
#metadataActivityLog .list-group-item {
    border-left: 3px solid #E2E8F0 !important;
    border-right: none !important;
    font-size: 0.82rem !important;
    padding: 0.5rem 0.85rem !important;
    transition: border-left-color 0.2s ease;
}

#metadataActivityLog .list-group-item.activity-found {
    border-left-color: #059669 !important;
}

#metadataActivityLog .list-group-item.activity-processing {
    border-left-color: var(--discovery) !important;
}

#metadataActivityLog .list-group-item.activity-error {
    border-left-color: #DC2626 !important;
}

/* --- SEARCH INPUT --- */
.search-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 5;
}

.search-wrapper .form-control {
    padding-left: 38px !important;
    border-radius: 24px !important;
    border: 1.5px solid var(--border) !important;
    background: var(--surface) !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
}

.search-wrapper .form-control:focus {
    background: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
}

.search-wrapper .btn-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    padding: 0.2rem 0.35rem;
    border-radius: 50%;
    line-height: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    z-index: 5;
}

.search-wrapper .btn-clear:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* --- RESULTS SECTION --- */
.results-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.results-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.results-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Selection count badge */
.selection-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.85);
}

.selection-count-pill.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- TABLE --- */
.table-hover > tbody > tr:hover > * {
    background-color: #F0F9FF !important;
}

.table > tbody > tr.row-selected > * {
    background-color: var(--primary-light) !important;
}

/* Remove stripes from metadata table */
#metadataTable.table-striped > tbody > tr:nth-of-type(odd) > *,
#finalSelectionTable.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: transparent !important;
}

#metadataTable thead th,
#finalSelectionTable thead th {
    background: #FAFAFA !important;
    border-bottom: 2px solid var(--border) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--text-secondary) !important;
    padding: 0.75rem 0.75rem !important;
}

#metadataTable td,
#finalSelectionTable td {
    vertical-align: middle !important;
    font-size: 0.875rem !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 0.75rem !important;
    border-bottom: 1px solid var(--border) !important;
}

#metadataTable > tbody > tr:last-child > td,
#finalSelectionTable > tbody > tr:last-child > td {
    border-bottom: none !important;
}

/* Custom checkboxes in table */
#metadataTable .form-check-input[type="checkbox"],
#finalSelectionTable .form-check-input[type="checkbox"],
#metadataComponentsList .form-check-input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #CBD5E1 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 0 !important;
}

#metadataTable .form-check-input[type="checkbox"]:checked,
#finalSelectionTable .form-check-input[type="checkbox"]:checked,
#metadataComponentsList .form-check-input[type="checkbox"]:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.table-wrapper {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-wrapper .table {
    margin-bottom: 0 !important;
}

.table-wrapper .table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* --- STICKY ACTION BAR --- */
.sticky-action-bar {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 0.875rem 1.25rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    z-index: 20;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.sticky-action-bar .btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.875rem !important;
}

.btn-back-action {
    background: white !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-secondary) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.1rem !important;
}

.btn-back-action:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: var(--primary-light) !important;
}

/* --- PAGINATION --- */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1.5px solid var(--border) !important;
    color: var(--text-secondary) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    min-width: 36px;
    text-align: center;
    padding: 0.35rem 0.6rem !important;
    transition: all 0.15s ease !important;
}

.pagination .page-link:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.pagination .page-item.active .page-link {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
}

.pagination .ellipsis .page-link {
    border-color: transparent !important;
    color: var(--text-secondary) !important;
    cursor: default !important;
}

/* --- METADATA TYPE LIST --- */
.metadata-type-item.active {
    border-left: 4px solid var(--primary) !important;
    font-weight: 600 !important;
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.metadata-type-item:hover {
    border-left-color: var(--primary) !important;
    background: var(--surface) !important;
}

/* Selected count badge */
#selectedComponentsCount {
    background: var(--primary) !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    padding: 0.4em 1em !important;
}

/* Browse section section-title */
.section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Section card borders */
#manualSelectionSection .card,
#finalSelectionSection .card {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Alert improvements */
#noMetadata, #metadataErrors {
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid #FEF3C7 !important;
    background: #FFFBEB !important;
    color: #92400E !important;
    font-size: 0.875rem !important;
}

/* Review card */
#finalSelectionSection .metadata-filter-card {
    background: var(--surface) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Continue button */
#confirmManualSelection {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.5rem !important;
}

/* Main container */
main.bg-white {
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 1.5rem !important;
}

/* Collapsible filter card chevron */
#discoveryFilterBody.collapsing ~ .card-header #filterCollapseIcon,
#discoveryFilterBody.collapse:not(.show) ~ * #filterCollapseIcon {
    transform: rotate(180deg);
}

#discoveryFilterCard [data-bs-toggle="collapse"][aria-expanded="false"] #filterCollapseIcon {
    transform: rotate(180deg);
}

/* "Change selection method" button styling */
#expandSelectionCardsBtn {
    border-radius: 20px !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-secondary) !important;
    background: white !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 0.3rem 0.9rem !important;
    transition: all 0.2s ease !important;
}

#expandSelectionCardsBtn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: var(--primary-light) !important;
}

#selectionCardsToggle {
    padding: 0.5rem 0 0.25rem 0;
}

/* ============================================================
   End Dashboard Redesign
   ============================================================ */