:root {
    --primary-color: #33CCCC;
    --primary-color-dark: #1e9999;
    --primary-color-tsp: #edfafa;
    --primary-color-tsp2: rgba(51, 204, 204, 0.12);
    --dark-color: #343a40;
    --grey: rgb(175, 177, 179);
    --lightgrey: #F8F8F8;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---- Reboot ---- */

.modal-body {
    padding: 1.5rem;
}
.modal-header {
    border-bottom: none;
    padding: 1rem 1.5rem 0.5rem;
}
.modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1.5rem;
}
.modal-content {
    border-radius: 10px;
}

.btn-primary i:not(.fa-spin), .btn-secondary i:not(.fa-spin),
.btn-primary .material-symbols-rounded, .btn-secondary .material-symbols-rounded {
    margin-right: 8px;
}

h1 {
    font-weight: bolder;
}

.main-footer {
    border: none;
    margin-left: 200px !important;
    text-align: center;
}

.nav-sidebar {
    > li, > p {
        width: 100%;
    }
}

.form-control {
    height: 38px;
}

.form-check {
    padding-left: 1.5rem;
}
.form-check-input {
    margin-left: -1.5rem;
}

.h5, h5 {
    font-size: 1.2em;
}

.small, small {
    font-size: 90%;
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 8px 15px;
    margin: 0 auto;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    color: white;
    background-color: var(--primary-color-dark) !important;
    border-color: var(--primary-color-dark);
}
.btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color);
    opacity: 0.5;
}

.border-primary {
    border-color: var(--primary-color) !important;
    border-width: 2px;
}

.progress-bar {
    background-color: var(--primary-color);
}

ul:not(.vertical-nav, .horizontal-nav, .nav-tabs, .nav-pills) {
    padding-left: 0;

    li {
        color: var(--dark-color);
        line-height: 1.7;
        list-style-type: none !important;

        a {
            color: var(--dark-color);
            padding-left: 0;
            transition: all 0.3s;
        }
    }
    li:hover a {
        color: var(--primary-color);
        padding-left: 10px;
    }
}

.nav-link, a:hover {
    color: var(--dark-color);

    &.active {
        color: var(--primary-color) !important;
    }
}
.nav-pills .nav-link:not(.active):hover {
    color: var(--primary-color);
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: var(--primary-color-tsp) !important;
}

.modal-header .close>span {
    font-size: unset;
}

.badge {
    padding: 10px 15px;
    font-weight: 400;
    font-size: 0.85rem !important;
    white-space: break-spaces;
    text-align: left;
    line-height: 1.2;
}
.bg-success {
    background-color: rgba(0, 137, 73, 0.15) !important;
    color: rgb(0, 137, 73) !important;
}
.bg-warning {
    background-color: rgba(255, 136, 0, 0.15) !important;
    color: rgb(255, 136, 0) !important;
}
.bg-danger {
    background-color: rgba(170, 0, 0, 0.8) !important;
    color: darkred !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-danger {
    background-color: rgb(170, 0, 0);
    border-color:  rgb(170, 0, 0);

    &:hover {
        background-color: rgb(120, 0, 0);
        border-color:  rgb(120, 0, 0);
    }
}

.knob {
    font-family: 'Lexend', sans-serif !important;
}

div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-end {
    justify-content: center;

    &:has(.dt-paging) {
        margin: 0 auto;
    }
}
div.dt-container .dt-paging .dt-paging-button {
    
    margin-left: 0;
    border-radius: 0;
    border: none !important;
    border-top: 2px solid white !important;
    outline: none !important;
    box-shadow: none !important;
    
    &.first, &.last {
        display: none;
    }
    &.previous:hover, &.next:hover {
        background: none !important;
        color: var(--primary-color) !important;
    }
    &:not(.previous, .next) {        
        background: var(--lightgrey) !important;
        color: black !important;

        &:hover {
            border-top: 2px solid var(--primary-color) !important;
        }
        &.current {
            color: var(--primary-color) !important;
        }
    }
}

.list-group .list-group-item {
    border:none;

    &:not(:last-child) {
        border-bottom: 1px solid var(--grey);
    }
}

.progress {
    background-color: rgba(0, 0, 0, .125);
    height: 2px;
    margin: 5px 0;

    .bg-success {
        background-color: rgb(0, 137, 73) !important;
    }
    .bg-warning {
        background-color: rgb(255, 136, 0) !important;
    }
}

.custom-control-input:checked~.custom-control-label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

@media (min-width: 1600px) {
    .col-xxl-9 {
        -ms-flex: 0 0 75%;
        flex: 0 0 75%;
        max-width: 75%;
    }
    .col-xxl-10 {
        -ms-flex: 0 0 83.33%;
        flex: 0 0 83.33%;
        max-width: 83.33%;
    }
}

/* ---- Main ---- */

* {
    font-family: 'Lexend', sans-serif;
    font-size: .85rem;
    word-wrap: break-word;
}
.content-wrapper {
    margin-left: 200px !important;
    background: none;
    padding-top: 2rem;
    padding-left: 4rem;
    padding-right: 4rem;
}
.main-navbar {
    z-index: 200;
    position: fixed;
    top: 10px;
    right: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    
    .nav-link {
        display: inline-flex;
        align-items: center;
        color: grey;
        padding: .5rem .75rem;
    }
}
.text-muted {
   color: #afb1b3 !important;
}
.font-primary {
    color: var(--primary-color) !important;
}
.font-success {
    color: rgb(0, 137, 73) !important;
}
.font-warning {
    color: rgb(255, 136, 0) !important;
}
.font-danger {
    color: darkred !important;
}
.font-black {
    color: black !important;
}
.font-md {
    font-size: 0.85rem;
}
.font-lg {
    font-size: 1rem;
}
.font-xl {
    font-size: 1.3rem;
}
small.label {
    font-style: italic;
}
.max-height-300 {
    max-height: 300px;
    overflow-y: auto;
}
.max-height-400 {
    max-height: 400px;
    overflow-y: auto;
}
.h-300 {
    max-height: 300px;
    height: 300px;
}
.min-height-200 {
    min-height: 200px;
}
.max-width-60 {
    max-width: 60%;
}
.sidebar-title {
    margin-top: 2rem;
    padding: 0 1rem;
    color: grey;
}
.content-header {
    margin-top: 1rem;
}
.content-header h1 {
    font-weight: bolder;
    padding-left: 1.5rem;
}

.top-left {
    position: absolute;
    top: 20px;
    left: 30px;
}
.top-right {
    position: absolute;
    top: 20px;
    right: 30px;
}
.cursor-pointer {
    cursor: pointer;
}
.no-click {
    pointer-events: none !important;
    opacity: .65;
}

.columns-2 {
    column-count: 2;
}

.material-symbols-rounded {
    font-size: 1.3rem;
}
.icon-xl {
    font-size: 3.5rem !important;
}
.icon-lg {
    font-size: 2.5rem !important;
}

#login_page {
    background: url('../img/black_and_white.png');
    background-repeat: no-repeat;
    background-size: cover;
}

#network {
    width: 100%;
    height: 350px;
    border: 1px solid lightgray;
}
.sortable-placeholder {
    background: #f8f9fa;
    height: 50px;
    border: 2px dashed #007bff;
    margin-bottom: 10px;
}

.card {
    box-shadow: none;

    .card-header {
        border:none;
    }
}

.card:not(.card-grey, .card-blue, .card-black) .card-body {
    padding: 2rem;
}

.card-grey {
    background-color: var(--lightgrey);
    border-radius: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);

    >.card-body {
        padding: 2.5rem;
    }
}

.card-blue {
    background-color: var(--primary-color-tsp);
    border-radius: 8px;
    padding: 1.5rem;

    .card-header {
        background-color: var(--primary-color-tsp) !important;

        .btn-tool {
            color: black;

            &:hover {
                color: var(--primary-color);
            }
        }
    }

    h3, h4 {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 1.3rem;
    }
    .material-symbols-rounded {
        color: var(--primary-color);
        font-size: 1.8rem;
    }

    ul li .text-muted {
        color: #afb1b396 !important;
    }
}
.card-black {
    background-color: var(--dark-color);
    border-radius: 8px;
    padding: 1.5rem;

    .material-symbols-rounded {
        color: var(--primary-color);
    }
    .card-black-header .material-symbols-rounded {
        font-size: 1.8rem;
    }
    * {
        color: white;
    }
    h3, h4 {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 1.3rem;
    }
    hr {
        border-color: grey;
    }

    .std-links {        
        * {       
            color: white;     
            transition: all 0.2s ease-in-out;
        }    
        &:hover * {
            color: rgb(51, 204, 204) !important;
        }
    }
}

.std-links {    
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--dark-color);
    transition: all 0.2s ease-in-out;

    &:hover, &:hover .material-symbols-rounded {
        color: rgb(51, 204, 204) !important;
    }

    .material-symbols-rounded {
        margin-right: 8px;
        font-size: 1.3rem;
        color: black;
        transition: color 0.2s ease-in-out;
    }
}

.return-btn {
    position: absolute;
    margin-left: -15px;

    .material-symbols-rounded {
        font-size: 1.8rem;
        font-weight: bold;
    }
}
.color-btn {
    border: none;
    border-radius: 5px;
    height: 35px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.jscolor-wrap {
    margin-top: 4px !important;
}

.slide-effect {
    transition: padding-left 0.2s ease-in-out;
    padding-left: 0;
}
.slide-effect:hover {
    padding-left: 10px;
}

.columns-gap {
    column-gap: 25px;
}

.ai-generated {
    background-color: var(--primary-color-tsp) !important;
    background-image: url('/dist/img/ai_icon.png');
    background-repeat: no-repeat;
    background-position: -2.2rem -2.2rem;
    background-size: 4rem;
}

.status-badge {
    padding: 5px 8px;
    text-align: center;
    border-radius: 5px;
    font-size: 0.7rem;
    width: auto;
    color: white;

    &.danger {
        background-color: rgba(170, 0, 0, 0.5);
    }
    &.warning {
        background-color: rgba(255, 136, 0, 0.5);
    }
    &.info {
        background-color: rgba(51, 204, 204, 0.5);
    }
    &.success {
        background-color: rgba(0, 137, 73, 0.5);
    }
    &.secondary {
        background-color: rgba(90, 90, 90, 0.5);
    }
}

.add-btn {
    .add-btn-text {
        opacity: 0;
        z-index: -1;
        position: absolute;
        top: 25%;
        margin-left: 0;
        color: black;
        transition: all 0.3s ease;
    }

    &:hover > .add-btn-text {
        opacity: 1;
        margin-left: -120px;
    }
}

.tab-pane h5 {
    font-weight: bold;
    margin: 0;
}

.opacity-50 {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.numbers {
    font-weight: bold;
    color: var(--primary-color);

    &.numbers-md * {
        font-size: 1.5rem !important;
    }
    &.numbers-lg * {
        font-size: 2rem !important;
    }
    &.numbers-xl * {
        font-size: 3rem !important;
    }
    &.numbers-xxl * {
        font-size: 4rem !important;
    }
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease-in-out;
    border-radius: 5px !important;
    width: 35px;
    height: 35px;

    .material-symbols-rounded {
        font-size: 1.2rem;
    }
    &:hover {
        background-color: var(--primary-color-tsp);
        color: var(--primary-color);
    }
    &.danger-btn:hover {
        background-color: rgba(170, 0, 0, 0.15);
        color: darkred;
    } 
}

.btn-blue {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease-in-out;
    border-radius: 5px;
    background-color: var(--primary-color-tsp);
    color: var(--primary-color);

    i {
        font-size: 1rem;
    }

    &:hover {
        background-color: var(--primary-color);
        color: white;
    }
}

@media (max-width: 1500) {
    .content-wrapper {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}


/* ---- Forms ---- */

input:-internal-autofill-selected {
    background: none !important;
    background-color: unset !important;
}

.form-control, .select2-container--default .select2-selection--single {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #afb1b3;
    background-color: inherit;

    &:focus {
        background-color: inherit;
        border-color: var(--primary-color);
    }
}
.select2-container--default:not(.select2-container--disabled) .select2-selection--single:focus {
    border-color: var(--primary-color);
    background-color: inherit;
}

.custom-textarea {
    height: auto;
    font-size: inherit;
    text-align: justify;
    padding-bottom: 10px !important;
}

.select2-container--default {
    &.select2-container--focus .select2-selection--multiple, 
    &.select2-container--focus .select2-selection--single,
    &.select2-container--open .select2-selection--multiple,
    &.select2-container--open .select2-selection--single {
        border-color: var(--primary-color) !important;
    }
}

.select2-selection__choice {
    background-color: var(--primary-color-tsp) !important;
    color: var(--secondary-color) !important;
}

.input-group-append.end-btn  {
    display: flex;
    align-items: center;
    padding-left: 15px;

    .btn {
        height: 50px;
        width: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 30px !important;
        background-color: var(--primary-color-tsp);
        color: var(--primary-color);
        transition: all 0.2s ease-in-out;

        &:hover {
            background-color: var(--primary-color);
            color: white;
        }
        &.btn-sm {            
            height: 30px;
            width: 30px;
        }
    }
}

.searchbar {
    border-radius: 20px;
    padding: 2px 15px;
    background-color: var(--lightgrey);
    display: flex;
    align-items: center;

    .fa {
        color: var(--grey);
    }
    input {
        border: none;
        outline: none;
        padding: 5px;
        background-color: transparent;
        color: inherit;
        margin-left: 3px;

        &:focus {
            background-color: inherit;
        }
    }
}

.form-error {
    border-color: rgba(170, 0, 0, 0.8) !important;
}


/* ---- Sidebar ---- */

.main-sidebar {
    width: 200px !important;

    .sidebar-logo {
        max-height: 25px;
        width: auto;
        margin: 0 auto 5px;
        object-fit: contain;
    }
    .brand-text {
        font-size: 1.2rem;
    }
    .nav-link {
        padding: .5rem 1rem;
        display: flex;
        align-items: center;
    }

    .sidebar {
        padding: 0 1.75rem 0 1.5rem;

        .nav-link p {
            margin-left: 10px !important;
        }
        .nav-item.active .nav-link {
            background-color: rgba(51, 204, 204, 0.15);
            color: var(--primary-color);
            font-weight: bold;
            box-shadow: none;
        }
    }
}

body:not(.sidebar-collapse) .sidebar .nav-link, 
body:not(.sidebar-collapse) .main-sidebar.sidebar-focused .nav-link, 
body.sidebar-collapse .main-sidebar:hover .nav-link, 
body.sidebar-collapse .main-sidebar.sidebar-focused .nav-link {
    text-align: left;
}
body.sidebar-collapse .sidebar .nav-link {
    text-align: center;
}


/* Toggle Switch Styles */

.view-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 20px;

    input {
        opacity: 0;
        width: 0;
        height: 0;

        &:checked + .slider {
            background-color: var(--primary-color);
            &:before {
                transform: translateX(26px);
            }
        }
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;

        &.round {
            border-radius: 34px;
            &:before {
                border-radius: 50%;
            }
        }

        &:before {
            position: absolute;
            content: "";
            height: 15px;
            width: 15px;
            left: 0.17rem;
            bottom: 0.17rem;
            background-color: white;
            transition: .4s;
        }
    }

    &.switch-sm {
        width: 32px;
        height: 15px;

        .slider:before {
            height: 10px;
            width: 10px;
        }

        input:checked + .slider {
            &:before {
                transform: translateX(18px);
            }
        }
    }
}

.form-check-label {
    cursor: pointer;
}


/* Range slider */

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
  }
  
  input[type="range"].custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
    margin: 0;
  }
  
  input[type="range"].custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #33CCCC;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 3;
    margin-top: -6px; /* Center the 20px thumb on the 8px track: (20-8)/2 = 6px */
  }
  
  input[type="range"].custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #33CCCC;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 3;
  }
  
  input[type="range"].custom-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(to right, #33CCCC 0%, #33CCCC var(--value, 50%), #e0e0e0 var(--value, 50%), #e0e0e0 100%);
    border-radius: 5px;
  }
  
  input[type="range"].custom-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 5px;
  }
  
  .slider-progress {
    position: absolute;
    top: 6px; /* Center the 8px progress bar in the 20px wrapper: (20-8)/2 = 6px */
    left: 0;
    height: 8px;
    background: #33CCCC;
    border-radius: 5px;
    z-index: 1;
    pointer-events: none;
  }

  .slider-number {
    font-size: 1.1rem;
    color: var(--primary-color);
  }


/* Pipeline View Styles */

.pipeline-container {
    overflow-x: auto;
    padding: 20px 0;
    transform:rotateX(180deg);

    .pipeline-columns {
        display: flex;
        gap: 8px;
        min-width: max-content;
        padding: 0 20px;
        transform:rotateX(180deg);
    
        .pipeline-column {
            min-width: 300px;
            max-width: 350px;
            background: #f8f9fa;
            border-radius: 8px;
        }
    }
}



.pipeline-column-header {
    background: var(--primary-color-tsp);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;

    &.won {
        background-color: rgba(0, 137, 73, 0.15) !important;
        color: rgb(0, 137, 73) !important;
    }
    &.lost {
        background-color: rgba(170, 0, 0, 0.15) !important;
        color: darkred !important;
    }
    &.unallocated {
        background-color: rgba(175, 177, 179, 0.15) !important;
        color: rgb(150, 150, 150) !important;
    }

    .project-total-value {
        color: black;
        font-size: 1.1rem;
    }
}

.project-count {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: normal;
}
.pipeline-cards {
    min-height: 200px;
    padding: 15px;

    &.drag-over {
        background: #e0f7fa;
        border: 2px dashed #33CCCC;
    }

    .project-card {
        background: white;
        border-radius: 6px;
        padding: 15px;
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
        cursor: pointer;

        &.draggable-project-card.dragging {
            opacity: 0.5;
        }
    
        &:hover {
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }

        .project-card-header {
            font-weight: 600;
            color: #495057;
            margin-bottom: 8px;
            font-size: 14px;
        }
        .project-card-tags {
            font-size: 12px;
            color: var(--grey);
            font-style: italic;
        }
        .project-card-actions {
            display: flex;
            gap: 5px;
            justify-content: center;
        
            .btn {
                padding: 2px 6px;
                font-size: 12px;
            }
        }
    }
}

.empty-column {
    text-align: center;
    color: var(--grey);
    font-style: italic;
    padding: 20px;
}

/* Table View Styles */
    .table-view-container {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pipeline-columns {
        flex-direction: column;
        gap: 15px;
    }

    .pipeline-column {
        min-width: auto;
        max-width: none;
    }
}


/* ---- Fullpage Menu ---- */

#fullmenu {
    z-index: 199;
    padding: 0;
    margin: 0;
    margin-left: 200px !important;
    position: fixed;
    width: calc(100vw - 200px);
    height: 100vh;
    background-color: white;
    left: -100vw;
    transition: left 0.3s ease-in-out;

    &.open {
        left: 0;
    }

    .wrapper {
        margin: 5% 15% 0;


        .material-symbols-rounded {
            font-size: 2rem;
            margin-bottom: 10px;
            color: var(--primary-color);
        }
    }

    h1 {
        color: var(--primary-color);
        font-weight: bold;
    }
    hr {
        border-color: lightgrey;
        border-width: 2px;
        width: 60%;
        display: inline-flex;
        justify-self: start;
    }
    
    .fullmenu-section {
        display: none;
    }
    .menu-item-description {
        font-size: 0.7rem;
        text-align: justify;
    }

    .fullmenu-card {        
        position: relative;
        padding: 25px 30px;
        border-radius: 10px;
        transition: all 0.15s ease-in-out;
        top: 0px;
        cursor: pointer;
        
        h5 {
            color: #343a40;
            font-weight: 600;
            transition: color 0.15s ease-in-out;
        }

        &:hover, &.active {
            background-color: var(--primary-color-tsp);
            top: -8px;
        
            h5 {
                color: var(--primary-color);
            }
        }
    }

    .v-divider {
        z-index: -10;
        position: relative;
        top: 8px;
        width: 3px;
        height: 30px;
        background-color: var(--grey);
        border-radius: 2px;
        margin: 0 auto 14px;

        &.opacity-50 {            
            background-color: lightgrey;
        }
    }
}

@media (max-width: 1800px) {
    #fullmenu .wrapper {
        margin: 5% 8% 0;
    }
    #fullmenu ul:not(.one-column) {
        column-count: 2;
    }
}

.fullmenu-logo {
    max-height: 50px;
    width: auto;
    display: inline;
    margin-right: 20px;
}
.logo-text {
    font-size: 2rem;
    color: black;
}


/* ---- Tabs nav ---- */


ul.vertical-nav, ul.horizontal-nav {
    li a {
        color: var(--grey);
        font-weight: 400;
        margin: 3px 0;

        &:hover {
            color: var(--primary-color);
        }
        
        &.active {
            background-color: var(--primary-color-tsp);
            color: var(--primary-color);
        }

    }
}

ul.vertical-nav {
    flex-direction: column;
    margin-top: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 150px;
    justify-self: end;
    min-height: 60%;
    border-right: 1px solid lightgrey;

    li a {
        text-align: end;
        border-radius: 5px 0 0 5px;
    }
}
.modal-body ul.vertical-nav {
    margin-top: 1.5rem;
}

ul.horizontal-nav {
    justify-self: start;
    min-width: 70%;
    border-bottom: 1px solid lightgrey;

    li a {
        text-align: start;
        border-radius: 5px 5px 0 0;
        margin-bottom: 0;
        padding: .75rem 1.5rem;
    }
}

/* ---- Listings ---- */

table.table {
    display: block;

    .export-only {
        display: none !important;
    }

    td, th {
        border: none !important;
        vertical-align: middle;
        text-align: center !important;

        .form-control {
            background-color: inherit !important;

            &:focus {
                border-color: var(--primary-color);
            }
        }
        &[contenteditable="true"] {
            border-bottom: 1px solid lightgrey !important;
            margin: 0 15px;
        }
    }

    &:not(.table-centered) {
        td, th {
            &:first-child {
                text-align: left !important;
                &.text-center {                        
                    text-align: center !important;
                }
            }
        }
    }

    thead, tbody {
        display: flex;
        flex-direction: column;
        
        tr {
            
            display: flex;
            justify-content: space-around;
            align-items: center;
            
            margin-bottom: 10px;
            padding: 0.5rem;

            &.selected {
                border-left: 5px solid var(--primary-color);
            }
            &.ai-generated {
                background-color: var(--primary-color-tsp) !important;
            }
            td, th {
                padding: 5px 10px;
                
                &:last-child {
                    text-align: right !important;
                    &.text-center {                        
                        text-align: center !important;
                    }
                }
            }
        }
    }
    thead tr {
        margin-bottom: 0;

        th {
            color: var(--grey);
            outline: none !important;
            transition: color 0.2s ease;
            font-weight: 400;

            &:hover {
                color: black;
            }
            &:last-child {
                padding-right: 15px;
            }
        }
    }
    tbody {
        tr {
            position: relative;
            background-color: var(--lightgrey) !important;
            border-radius: 8px;
            box-shadow: none;
            top: 4px;
            transition: all 0.2s ease-in-out;

            &:not(:has(td.dt-empty)):hover {
                box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
                top: 0px;
            }

            .btn-group {
                display: inline-flex;
                align-items: center;

                .btn {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: all 0.1s ease-in-out;
                    border-radius: 5px !important;
                    width: 35px;
                    height: 35px;

                    .material-symbols-rounded {
                        font-size: 1.2rem;
                    }

                    &:hover {
                        background-color: var(--primary-color-tsp);
                        color: var(--primary-color);
                    }

                    &.danger-btn:hover {
                        background-color: rgba(170, 0, 0, 0.15);
                        color: darkred;
                    } 
                }
            }

            .dropdown-menu ul li .btn {
                width: 100%;
                display: flex;
                justify-content: start;
                font-size: 0.8rem;
            }
        }
    }
}


div.dt-container .dt-search {    
    border-radius: 20px;
    padding: 2px 15px;
    background-color: var(--lightgrey);

    .fa {
        color: var(--grey);
    }

    label {
        display: none !important;
    }
    input {
        border: none;
        outline: none;
    }
}

.dt-paging-button.disabled {
    display: none !important;
}

.dt-button>span {
    display: flex;
    align-items: center;
}



/* ---- Stepper ---- */

.stepper-vertical {

    .step-row {
        display: flex;
        align-items: center;
        min-height: 50px;

        .step {
            margin: 0 20px;
            width: 20px;
            height: 20px;
            border-radius: 30px;
            background-color: rgba(175, 175, 175, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
    
            .step-circle {
                width: 8px;
                height: 8px;
                border-radius: 30px;
                background-color: rgb(175, 175, 175);
            }        
        }
        .step-label {
            color:  var(--grey);
            margin-top: 5px;
            font-size: 0.9rem;
            padding: .5rem 1rem;
            width: auto;
            max-width: 180px;
            cursor: pointer;
            transition: color 0.2s ease-in-out;

            &:hover {
                color: var(--primary-color);
            }
        }

        &.active {
            .step {
                background-color: var(--primary-color-tsp2);    
                .step-circle {
                    background-color: var(--primary-color);
                }        
            }
            .step-label {
                background-color: var(--primary-color-tsp);
                color: var(--primary-color);
            }
        }
        &.visited {
            .step-circle {
                background-color: var(--primary-color);
            } 
        }

        &:has(.step-label.no-click) {
            cursor: not-allowed;
        }
    }

    .step-link {
        background-color: var(--grey);
        width: 2px;
        height: 75px;
        position: relative;
        left: 29px;

        &.active {
            background-color: var(--primary-color);
        }
        &.with-description {
            height: 150px !important;
        }
    }
}


/* ---- Use Cases ---- */

.start-use-case-btn {
    display: none;
    transition: all 0.3s ease;
}

.use_cases_list .use-cases-list-row {
    
    h3 {
        height: 55px;
    }

    &:hover .start-use-case-btn {
        display: flex;
    }
}

/* ---- Ariane funnel ---- */

.stepper-vertical.ariane-funnel {

    .step-row {
        .step {
            margin: 0 20px 0 0;
            width: 30px;
            height: 30px;
        }

        .step-label {
            max-width: 280px;
        }

        .hover-btn {
            display: none;
        }
        &.active {
            .hover-btn {
                display: flex;
            }
        }
        &.last-step-active {            
            padding-top: 5px;
            padding-bottom: 75px;

            &.active {
                padding-bottom: 150px;
            }
        }

        &:hover .hover-btn {
            display: flex !important;
        }
        
        .step-action-line {
            display: inline-flex;
            width: 40px;
            margin-right: 20px;
            margin-left: 0;
        }
        .step-action {
            position: absolute;
            margin-top: 12px;
            width: 400px;
        }
    }

    .step-link {        
        left: 14px;        
        height: 75px;

        &:not(.current) {             
            height: 55px;
        }
    }
}

#ariane-funnel-banner {
    z-index: 150;
    position: absolute;
    top: 0;
    margin-left: 200px;
    width: 60%;
    justify-self: center;
    border-radius: 0 0 6px 6px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: white;

    #banner-header {        
        position: relative;
        left: 8px;
        padding: 8px 20px;
    }

    #banner-body {
        padding: 25px 50px;
    }
}


/* ---- Others ---- */

/* Ensure Excel export button has transparent background */
#contacts_listing_wrapper .dt-buttons button.btn-outline-primary {
    background-color: transparent !important;
    background: transparent !important;
}
#contacts_listing_wrapper .dt-buttons button.btn-outline-primary:hover,
#contacts_listing_wrapper .dt-buttons button.btn-outline-primary:focus,
#contacts_listing_wrapper .dt-buttons button.btn-outline-primary:active {
    background-color: #33CCCC !important;
    background: #33CCCC !important;
}

/* Ensure pagination is always visible and functional */
#contacts_listing_wrapper .dataTables_paginate {
    display: block !important;
    visibility: visible !important;
}

#contacts_listing_wrapper .dataTables_paginate .pagination {
    display: flex !important;
    justify-content: center;
}


/* Select2 centering styles */
.select2-container .select2-selection--single {
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    top: 1px !important;
    right: 1px !important;
}

.select2-container .select2-container--default .select2-selection--single .select2-selection__placeholder .select2-search__field:placeholder-shown  {
    text-align: center !important;
}


/* Ensure the select2 dropdown is also centered */
.select2-results__option {
    text-align: center !important;
}

/* Center the form controls in their columns */
.col-sm-4 .select2-container {
    width: 100% !important;
}

/* Custom styles for project stages */
#stages-sortable.ui-sortable-helper {
    background: #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    border: 2px solid #007bff !important;
}

#stages-sortable .ui-sortable-placeholder {
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
    height: 60px !important;
    margin: 5px 0 !important;
}

.stage-name {
    font-weight: 500;
}

.list-group-item {
    transition: all 0.2s ease;
    
    &:hover {
        background-color: #f8f9fa;
    }
}

/* Ensure all statistics boxes have the same height and aligned text */
#market-statistics-row .col-lg-2,
#market-statistics-row .col-md-4,
#market-statistics-row .col-sm-6,
#crm-statistics-row .col-lg-3,
#crm-statistics-row .col-md-6,
#crm-statistics-row .col-sm-6 {
    display: flex;
    flex-direction: column;
}

.market-stat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 120px;
}

.market-stat-box .inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.market-stat-box .inner h3 {
    margin: 0;
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
}

.market-stat-box .inner p {
    margin: 5px 0 0 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
}

.market-stat-box .icon {
    text-align: center;
}

/* Gradient backgrounds using #33CCCC color */
.market-stat-box {
    background: linear-gradient(135deg, #33CCCC 0%, #2BB8B8 50%, #26A3A3 100%) !important;
    color: white !important;
}

/* Override Bootstrap background classes for gradient */
.market-stat-box.bg-info,
.market-stat-box.bg-success,
.market-stat-box.bg-warning,
.market-stat-box.bg-primary,
.market-stat-box.bg-danger,
.market-stat-box.bg-secondary {
    background: linear-gradient(135deg, #33CCCC 0%, #2BB8B8 50%, #26A3A3 100%) !important;
}

/* Ensure text is white and readable */
.market-stat-box .inner h3,
.market-stat-box .inner p {
    color: white !important;
}

.market-stat-box .icon {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Ensure Excel export button has transparent background */
#leads_details_table_wrapper .dt-buttons button.btn-outline-primary {
    background-color: transparent !important;
    background: transparent !important;
}
#leads_details_table_wrapper .dt-buttons button.btn-outline-primary:hover,
#leads_details_table_wrapper .dt-buttons button.btn-outline-primary:focus,
#leads_details_table_wrapper .dt-buttons button.btn-outline-primary:active {
    background-color: #33CCCC !important;
    background: #33CCCC !important;
}

/* Ensure pagination is always visible and functional */
#leads_details_table_wrapper .dataTables_paginate {
    display: block !important;
    visibility: visible !important;
}

#leads_details_table_wrapper .dataTables_paginate .pagination {
    display: flex !important;
    justify-content: center;
}

#lead_description_display {
    font-style: italic;
    background-color: var(--lightgrey);
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ---- Recording ----- */

.record-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 65px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    pointer-events: none;
    inset: none !important;

    .fa-spinner {
        font-size: 24px;
        color: var(--primary-color);
    }

    .record-overlay-label {
        margin-top: 10px;
        color: var(--primary-color);
        font-weight: bold;
    }
    .record-overlay-loader {
        position: absolute; 
        top: 10px; 
        left: 10px;
        background: rgba(51, 204, 204, 0.9);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ---- Datatables Filters ---- */

.filtering-col-selection li {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    border-radius: 4px;
    transition: background 0.2 ease-in;

    &:hover {
        background: var(--lightgrey);
    }
}

#filters_list li {
    padding: 10px 0; 
    
    &:not(:last-child) {
        border-bottom: 1px solid lightgrey;
    }
}

.dropdown-menu-ul li a {
    padding-left: .75rem !important;
}