/*
* demo.css
* File include item demo only specific css only
******************************************************************************/
* {
    font-family: 'Poppins', sans-serif !important;
}
.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}



.result-item:hover {
    background-color: var(--bs-primary-bg-subtle);
}

[readonly] {
    background-color: #e9ecef !important; /* light gray background */
    color: #6c757d !important; /* muted text color */
    cursor: not-allowed !important; /* show disabled cursor */
    opacity: 1 !important; /* keep text fully visible */
}

/* Optional: block interaction (click/focus/typing) */
[readonly] {
    pointer-events: none;
}

/* Make kanban boards stretch full height */
/* ============================= */
/* Kanban Wrapper & Boards       */
/* ============================= */

.kanban-wrapper {
    display: flex;
    overflow-x: auto; /* horizontal scroll for many boards */
    padding-bottom: 10px;
    gap: 12px; /* spacing between boards */
}

/* Each board column */
.kanban-board {
    display: flex;
    padding:2px;
    flex-direction: column;
    width: 250px; /* board width */
    max-height: 80vh; /* max height of board */
    overflow: hidden;
    transition: transform 0.2s;
/*    padding: 1.1rem;*/
    /*border-radius: 1rem;*/ /* same as rounded-2xl */
}
.diff-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-radius: 1rem !important;
}

    /* Hover effect for boards */
/*    .kanban-board:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }*/
.kanban-board-header {
    background: white;
    display: flex;
    flex-direction: row;
    align-content: center !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem;
    padding: 10px !important;

    border-radius: .6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Board title */
.kanban-title-board {
    font-weight: 600;
    font-size:15px !important;
    padding: 10px 12px;
    cursor: default;
    user-select: none;
    text-align:center;
}


/* ============================= */
/* Scrollable items container    */
/* ============================= */

.kanban-drag {
    flex: 1; /* fill available height */
    overflow-y: auto; /* vertical scroll */

    min-height: 50px; /* always some space for drop */
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    scrollbar-color: #c0c0c0 transparent; /* Firefox */
    padding: .1rem !important;
    border: 2px dashed #e2e8f0;
}

    /* Chrome, Edge, Safari */
    .kanban-drag::-webkit-scrollbar {
        width: 0px;
    }

    .kanban-drag::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 3px;
    }

    .kanban-drag::-webkit-scrollbar-thumb {
        background-color: #c0c0c0;
        border-radius: 3px;
        transition: background 0.3s;
    }

    .kanban-drag::-webkit-scrollbar-thumb:hover {
            background-color: #a0a0a0;
            box-shadow: inset 0 0 2px rgba(0,0,0,0.3);
    }

/* ============================= */
/* Kanban Items Styling          */
/* ============================= */

.kanban-item {
    background-color: #fff !important;
    padding: 12px !important;
    margin-bottom: 8px;
    border-radius: 0.5rem !important;
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
.kanban-item:hover {
     transform: translateY(-2px);
     transform: translateY(-2px);
     box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Badges inside items */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 12px;
    margin-right: 4px;
}

/* ============================= */
/* Scrollbar for the entire page */
html {
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

    html::-webkit-scrollbar {
        width: 2px;
    }

    html::-webkit-scrollbar-track {
        background: transparent;
    }

    html::-webkit-scrollbar-thumb {
        background-color: #d0d0d0;
        border-radius: 4px;
        transition: background 0.3s;
    }

        html::-webkit-scrollbar-thumb:hover {
            background-color: #b0b0b0;
        }

/* ============================= */
/* Optional: small avatars       */
/* ============================= */

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 4px;
}

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ============================= */
/* Nice Add-Item Button          */
/* ============================= */

.kanban-title-button {
    font-size: 0.85rem;
    padding: 4px 8px;
    background-color: #e7f1ff;
    border: 1px dashed #c0d3ff;
    color: #0056b3;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 6px;
    transition: background 0.2s;
}

    .kanban-title-button:hover {
        background-color: #cce0ff;
    }

/* ============================= */
/* Responsive tweaks             */
/* ============================= */

@media (max-width: 768px) {
    .kanban-wrapper {
        padding-bottom: 5px;
        gap: 8px;
    }

    .kanban-board {
        width: 200px;
    }
}


