:root {
    --bs-body-font-family: "Archivo",
        serif;
    scroll-behavior: smooth;
    --nav-transition-timing: 0.3s ease;
}

table .orderable.desc {
    background: url("images/sort-down.bbbad99a2476.svg") no-repeat right center;
}

table .orderable.asc {
    background: url("images/sort-up.36c3ae3fb326.svg") no-repeat right center;
}

/* icons */
.bi-info-circle-fill {
    color: rgb(60, 154, 134);
    font-size: 1rem;
}

.bi-square-fill {
    color: blue;
    font-size: 1rem;
}

.landing-card {
    transition: all 0.3s
}

.landing-card:hover {
    transform: scale(1.05);
}

/* Crispy Forms */
.asteriskField {
    display: none;
}

.colour-icon {
    transition: all 0.3s !important;
}

.colour-icon:hover {
    transform: scale(1.05) !important;
}

.popover {
    max-width: 600px;
}

.color-mode-sel.square-btn {
    width: 30px;
    /* Square size */
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid grey;
    background-color: transparent;
    cursor: pointer;
    font-size: 12px;
    /* Icon size */
}


.color-mode-sel.btn-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.color-mode-sel.btn-right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}


.color-mode-sel.btn-center {
    border-radius: 0;
}

/* Hover effect */
.color-mode-sel.square-btn:hover {
    background-color: #f0f0f0;
}

#main-content {
    transition: padding-left var(--nav-transition-timing);
    will-change: padding-left;
}



/* Remove all noUiSlider related CSS - Start cleanup */

/* Remove these blocks completely as we're no longer using noUiSlider */
/* noUiSlider custom styles - END */

/* Add general AG Grid related styles if needed */
.ag-theme-alpine {
    --ag-font-family: var(--bs-body-font-family);
    --ag-font-size: 14px;
}

/* Keep all other existing CSS unrelated to sliders */

/* ---------- AG GRID STYLING START ---------- */
/* Specific styles for AG Grid tables in the multi-content selection interface */

.ag-theme-alpine {
    --ag-header-background-color: #f8f9fa;
    --ag-odd-row-background-color: rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.ag-header-cell.ag-header-cell-checkbox .ag-header-select-all {
    cursor: pointer;
    margin-right: 5px;
}

.ag-row,
.ag-cell {
    cursor: pointer !important;
}

.selected-row {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.ag-checkbox-input-wrapper {
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
}

.transcription-link {
    color: var(--bs-primary);
    text-decoration: none;
    position: relative;
    z-index: 5;
}

.transcription-link:hover {
    text-decoration: underline;
}

/* ---------- AG GRID STYLING END ---------- */

/* Collapse indicator caret for collapsible headings (shared by framework analysis steps) */
.collapse-indicator {
    transition: transform 0.3s;
}

.collapsed .collapse-indicator {
    transform: rotate(-90deg);
}


/* Help card animation for analysis forms */
.help-card-animate {
    transition: all 0.4s ease-in-out;
    transform: translateY(0);
    opacity: 1;
}

.help-card-animate.hiding {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}

.help-card-animate.hidden {
    display: none !important;
}

/* Responsive typography and spacing */
/* Mobile typography adjustments */
@media (max-width: 767.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Tablet typography adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Large screen typography enhancements */
@media (min-width: 1400px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.875rem; }
    
    .lead {
        font-size: 1.375rem;
    }
}

/* Responsive table improvements */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Form responsive improvements */
@media (max-width: 767.98px) {
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .btn {
        margin-top: 0.5rem;
    }
}

/* Card responsive spacing */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (min-width: 1400px) {
    .card-body {
        padding: 2rem;
    }
}

/* Modal responsive improvements */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 0.375rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Toast positioning for mobile */
@media (max-width: 767.98px) {
    .toast-container {
        position: fixed !important;
        top: 70px !important; /* Below mobile nav button */
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
    }
    
    .toast {
        max-width: none;
    }
}

/* Analysis Catalog Styles */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.focus-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Chevron rotation animation for collapsible cards */
.btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.bi-chevron-down {
    transition: transform 0.2s ease-in-out;
}

/* Navigation hover effects */
.vertical-navbar .nav-link:hover {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.vertical-navbar .nav-link[href*="admin"]:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}