/* Brand Colors */
:root {
    --brand-maroon: rgb(167, 50, 99);
    --brand-maroon-btn: rgb(173, 60, 109);
    --brand-blue: #2c57a7;
    --brand-green: rgb(52, 168, 83);
    --brand-yellow: rgb(245, 158, 11);
}

/* Custom Buttons */
.btn-brand-blue {
    background: rgba(44, 87, 167, 0.08);
    color: rgb(44, 87, 167);
    border: 1px dashed rgba(44, 87, 167, 0.4);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 9px 14px;
}

.btn-brand-blue:hover {
    background: rgba(44, 87, 167, 0.15);
    color: rgb(44, 87, 167);
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 87, 167, 0.1);
}

.btn-brand-blue.btn-sm {
    padding: 9px 14px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 6px;
}

.btn-brand-maroon {
    background: var(--brand-maroon-btn);
    color: white;
    border: 1px solid var(--brand-maroon-btn);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 9px 14px;
}

.btn-brand-maroon.btn-sm {
    padding: 9px 14px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 6px;
}

.btn-brand-maroon:hover {
    background: rgb(140, 40, 80);
    border-color: rgb(140, 40, 80);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(163, 50, 97, 0.2);
}

/* Dashboard Widgets */
.widget-premium {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.widget-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.widget-blue {
    background: rgba(44, 87, 167, 0.06);
    color: #2c57a7;
    border-color: rgba(44, 87, 167, 0.1);
}
.widget-maroon {
    background: rgba(167, 50, 99, 0.06);
    color: rgb(167, 50, 99);
    border-color: rgba(167, 50, 99, 0.1);
}
.widget-green {
    background: rgba(52, 168, 83, 0.06);
    color: rgb(52, 168, 83);
    border-color: rgba(52, 168, 83, 0.1);
}
.widget-yellow {
    background: rgba(245, 158, 11, 0.06);
    color: rgb(245, 158, 11);
    border-color: rgba(245, 158, 11, 0.1);
}

.widget-premium .widget-icon-bg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 22px;
}
.icon-blue {
    background: rgba(44, 87, 167, 0.12);
    color: #2c57a7;
}
.icon-maroon {
    background: rgba(167, 50, 99, 0.12);
    color: rgb(167, 50, 99);
}
.icon-green {
    background: rgba(52, 168, 83, 0.12);
    color: rgb(52, 168, 83);
}
.icon-yellow {
    background: rgba(245, 158, 11, 0.12);
    color: rgb(245, 158, 11);
}

/* Layout Adjustments */

.tasks {
    overflow-y: auto;
    max-height: 75vh;
    scrollbar-width: thin;
    scrollbar-color: #ced4da transparent;
}
.tasks::-webkit-scrollbar {
    width: 7px;
}
.tasks::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 10px;
}
.tasks::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}
.tasks::-webkit-scrollbar-track {
    background: transparent;
}

.board::-webkit-scrollbar {
    height: 7px !important;
}

.board::-webkit-scrollbar-thumb {
    background: #ced4da !important;
    border-radius: 10px !important;
}

.board::-webkit-scrollbar-thumb:hover {
    background: #adb5bd !important;
}

.board::-webkit-scrollbar-track {
    background: transparent !important;
}

.board {
    scrollbar-width: thin !important;
    scrollbar-color: #ced4da transparent !important;
    overflow-x: auto !important;
    display: flex !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    min-height: 80vh !important;
}


.admin-dash{
    padding: 31px 15px !important;
}


.staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    background: rgb(44, 87, 167);
}


.task-count {
    background-color: #d0d0d0;
    border-radius: 59%;
    padding: 2px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-img{
    height: 2.5rem;
    width: 2.5rem;
}

button.complete-task-button {
    background: rgba(0, 255, 68, 0.08);
    color: rgb(52, 168, 83);
    border: 1px dashed rgba(52, 168, 83, 0.4);
    font-weight: 500;
    transition: all 0.3s ease;
}

.task-search-input{
    min-width: 160px;
    width: 100%;
    width: auto;
}


@media( max-width: 768px ){
    .task-search-input{
    min-width: 160px;
    width: auto;
}

.task-btns{
    display: flex;
    justify-content: end !important;
}

.my-task-input{
    width: 100% !important;
}
}

.cancel-btn{
    padding: 9px 14px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 6px;
    margin-right: 4px;
}

.my-task-btn {
    flex: 1 1 0;
    width: 100%;
}

.page-title-right .d-flex {
    width: 100%;
}

.page-title-right .d-flex > button {
    flex: 1;
}

.tday-task-btn{
    width: 170px !important;
}



.avatar-xs {
    height: 1.5rem !important;
    width: 1.5rem !important;
}



/* Online indicator overlaid on kanban single-task avatar (bottom-right) */
.single-task-avatar-wrap {
    line-height: 0;
}

.avatar-online-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0.65rem;
    height: 0.65rem;
    background-color: var(--bs-success, #22c55e);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}


/* Last-seen pill: bottom-right on avatar — light green chip, darker green text, white ring (matches reference) */
.avatar-offline-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(18%, 18%);
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    padding: 2px 3px;
    color: #15803d;
    background-color: #dcfce7;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12);
    white-space: nowrap;
    max-width: 2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}


/* single task card */

.task-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.complete-task-btn-wrap {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    width: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.task-title-row:hover .complete-task-btn-wrap {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    width: 2rem;
}

.complete-task-btn {
    width: 1.7rem;
    height: 1.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.9rem;
}

.complete-task-btn-solid {
    background-color: #2c57a7;
    color: #fff;
}

.complete-task-btn-solid:hover,
.complete-task-btn-solid:focus,
.complete-task-btn-solid:active {
    background-color: #2c57a7 !important;
    color: #fff !important;
    border-color: #2c57a7 !important;
}