@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Lexend+Deca:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');



/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 3px;      /* vertical scrollbar */
    height: 0px;

  }

  /* Track */
  ::-webkit-scrollbar-track {
    background: transparent;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #888;
  }




*{
    /* letter-spacing: 0.1px !important; */
}
h6{
    letter-spacing: 0.2px;
}
.member-name{
    font-size: 14px;
}
.member-designation{
    font-size: 13px;
}
/*OLD GENERAL*/
.text-primary, .badge-primary, .nav-link, .nav-tabs-custom .nav-link.active{
    color: #00AFAD !important;
}
.nav-tabs-custom .nav-link.active {
    border-bottom: 3px solid #00AFAD !important;
}
.bg-primary,.btn-primary{
    background: #00AFAD !important;
    border-color: #00AFAD !important;
}
.btn-outline-primary{
    border-color: #00AFAD !important;
    color:#00adb5 !important;
}
.btn-outline-primary:hover{
    background: #00AFAD !important;
    border-color: #00AFAD !important;
    color:#fff !important;
}
.btn a:hover, .btn:hover{
    color: #fff;
}
a{
    color: #00AFAD;
    text-decoration: none;
    font-weight: 500;
}
.left-70{
    left:250px !important;
}
.margin-left-70{
    margin-left:250px !important;
}
.left-0{
    left:0px !important;
}
.margin-left-0{
    margin-left:0px !important;
}
.card, .date-tab-btn, .btn{
    border-radius: 20px;
}
.card-header{
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}
.card-footer{
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}
.navbar-menu{
    background: #fff !important;
    border-color: #fff;
}
.navbar-menu .navbar-nav .nav-link:hover{
    color: #000 !important;
}
.navbar-menu .navbar-nav .nav-link{
    color: #00adb5 !important;
}
.menu-title{
    color: #00adb5 !important;
}
.header-item{
    height: 30px;
}


/*DDETAIL*/

.dept-name-header{
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}
.btn-danger, .btn-outline-danger{
    border-radius: 5px !important;
}
/* Hierarchy Tree Styles */
.card-title {
    font-size: 14px;
    margin: 0 0 7px 0;
}
.hierarchy-tree {
    padding: 5px;
}

.dept-box {
    display: inline-block;
    padding: 5px 10px;
    background: #00adb5;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dept-name {
    font-size: 12px;
}

.member-box {
    border: 2px solid #e9ebec;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.member-box:hover {
    border-color: #0ab39c;
    box-shadow: 0 4px 8px rgba(10, 179, 156, 0.2);
    transform: translateY(-2px);
}

.hod-box {
    border-color: #405189;
    border-width: 3px;
    background: linear-gradient(135deg, rgba(64, 81, 137, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.hierarchy-connector {
    width: 2px;
    height: 30px;
    background: #00adb5;
}

.progress {
    border-radius: 5px;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.avatar-xs {
    width: 2rem;
    height: 2rem;
}

.avatar-sm {
    width: 3rem;
    height: 3rem;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}



/* Tree Container */
.tree-container {

    padding-top: 55px;
}

.tree-wrapper {

    width: 100%;
    min-width: 630px;
    /* overflow-x: auto; */
    max-width: 2000px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    /* align-items: center; */
    /* min-width: fit-content; */
}

/* Child Wrapper for Insert Button */
.child-wrapper {
    position: relative;
}

/* Insert Between Container */
.insert-between-container {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.child-wrapper:hover .insert-between-container {
    opacity: 1;
}

/* Insert Between Button */
.insert-between-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    background: white;
}

.insert-between-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.insert-between-btn .insert-text {
    display: none;
}

.insert-between-btn:hover .insert-text {
    display: inline;
    margin-left: 0.25rem;
}

/* Member Node Styling */
.tree-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.member-card {
    transition: all 0.3s ease;
    border-left: 4px solid #0d6efd;
    min-width: 150px;
    max-width: 300px;
    background: white;
    position: relative;
    z-index: 10;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2) !important;
}

/* Level-based colors */
.level-0 .member-card {
    border-left-color: #0d6efd;
    background: #fff;
}

.level-1 .member-card {
    border-left-color: #198754;
    background: #fff;
}

.level-2 .member-card {
    border-left-color: #ffc107;
    background: #fff;
}

.level-3 .member-card {
    border-left-color: #dc3545;
    background: #fff;
}

.level-4 .member-card {
    border-left-color: #6f42c1;
    background: #fff;
}

/* Children Container */
.tree-children {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    flex-wrap: nowrap;
}

/* Vertical Connector Line from Parent to Children Group */
/*.tree-node.has-children > .member-card::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: 50%;*/
/*    bottom: -40px;*/
/*    width: 2px;*/
/*    height: 40px;*/
/*    background: linear-gradient(to bottom, #0d6efd, #dee2e6);*/
/*    transform: translateX(-50%);*/
/*    z-index: 1;*/
/*}*/

/* Horizontal Line Connecting Siblings */
.tree-children::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #dee2e6 10%, #dee2e6 90%, transparent 100%);
    z-index: 0;
}

/* Vertical Line from Horizontal Connector to Each Child */
.tree-children > .child-wrapper::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #dee2e6;
    transform: translateX(-50%);
    z-index: 1;
}

/* Remove connector for single child */
.tree-children.single-child::before {
    display: none;
}

.tree-children.single-child > .child-wrapper::before {
    background: linear-gradient(to bottom, #dee2e6, #dee2e6);
}

/* Avatar Circle */
.avatar-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.level-0 .avatar-circle {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.level-1 .avatar-circle {
    background: linear-gradient(135deg, #198754, #146c43);
    color: white;
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

.level-2 .avatar-circle {
    background: linear-gradient(135deg, #ffc107, #cc9a06);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.level-3 .avatar-circle {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: white;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.level-4 .avatar-circle {
    background: linear-gradient(135deg, #6f42c1, #59359a);
    color: white;
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
}

/* Badges */
.level-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Action Buttons */
.action-btn {
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .member-card {
        min-width: 280px;
        max-width: 100%;
    }

    .tree-children {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
    }

    .tree-children::before {
        display: none;
    }

    .tree-children > .child-wrapper::before {
        background: linear-gradient(to bottom, #dee2e6, #dee2e6);
    }

    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .insert-between-btn .insert-text {
        display: inline;
        margin-left: 0.25rem;
    }

    .member-modal-container .modal-dialog {
        max-height: 95vh;
    }
}

/* Animation for new nodes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tree-node {
    animation: fadeInUp 0.4s ease-out;
}

/* Center root nodes when multiple exist */
.tree-wrapper > .tree-node {
    margin-bottom: 60px;
    padding-left: 10px;
    padding-right: 20px;
}

.tree-wrapper > .tree-node:last-child {
    margin-bottom: 0;
}

/*DDETAIL*/

/*OLD GENERAL*/


:root {
    --primary-teal: #00AFAD;
    --dark-teal: #00AFAD;
    --light-bg: #F5F7FA;
    --white : #fff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--light-bg);
    font-family: 'Montserrat', sans-serif;
    padding-right: 15px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-teal) !important;
    letter-spacing: -1px;
}

.sidebar {
    position: fixed;
    left: 0px;
    padding:20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.sidebar-icon:hover {
    background: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 188, 212, 0.4);
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.stats-card {
    padding: 19px;
}

.member-stats-card {
    padding: 33px 28px 19px 28px;
}
.user-board-stats-card {
    padding: 25px 28px 19px 28px;
}

.stats-title {
    color: var(--primary-teal);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 11px;
}

.stat-item {
    text-align: left;
}

.stat-label {
    font-size: 12px;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.3;
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-teal);
    margin-bottom: 5px;
}

.stat-progress {
    width: 100%;
    height: 6px;
    background: #E8F5F7;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.member-stat-value {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-teal);

}

.member-stat-progress {
    width: 40%;
    height: 8px;
    background: #E8F5F7;
    border-radius: 3px;
    overflow: hidden;

}
.member-recurring-tasks-heading{
    font-size: 14.5px;
}

.stat-progress-bar {
    height: 100%;
    background: var(--primary-teal);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.department-header {
    padding: 20px 15px 15px 20px;
    text-align: center;
    position: relative;
}
.member-header {
    padding: 20px 20px 15px 30px;
    text-align: center;
    position: relative;
}

.department-icons-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 14px;
}

.department-icon-center {
    width: 45px;
    height: 45px;
    background: var(--primary-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.department-icons-right {
    position: absolute;
    right: 1rem;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 17px;
}
.member-icons-right {
    position: absolute;
    right: 1rem;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.department-icon-small {
    width: 39px;
    height: 39px;
    background: var(--primary-teal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;

    cursor: pointer;
    transition: all 0.3s ease;
}

.department-icon-small:hover {
    background: var(--dark-teal);
    transform: translateY(-2px);
}

.department-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-teal);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.department-title {
    font-size: 25px;
    font-weight: 600;
    color: #333;
    margin-top: 0rem;
}

.date-selector {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 10px;
}
.ub-date-selector {
    display: flex;
    gap: 1.75rem;
    justify-content: center;
    padding: 10px;
}
.dbtask-date-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px;
}

.date-btn {
    padding: 10px 12px 10px 12px;
    border: 1.5px solid #0000001A;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    min-width: 70px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.date-btn.active {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.date-btn:hover:not(.active) {
    background: #F5F5F5;
    border-color: #BDBDBD;
}

.ub-date-btn {
    padding: 6px 30px;
    border: 1.5px solid #0000001A;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    min-width: 70px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ub-date-btn.active {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.ub-date-btn:hover:not(.active) {
    background: #F5F5F5;
    border-color: #BDBDBD;
}


.dbtask-date-btn {
    padding: 10px 50px;
    border: 1.5px solid #0000001A;
    background: white;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    min-width: 70px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.dbtask-date-btn.active {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.dbtask-date-btn:hover:not(.active) {
    background: #F5F5F5;
    border-color: #BDBDBD;
}


.dashboard-date-btn {
    padding: 10px 40px;
    border: 1.5px solid #0000001A;
    background: white;
    border-radius: 22px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    min-width: 70px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.dashboard-date-btn.active {
    /* border-color: var(--primary-teal); */
    color: #000;
    border-color: var(--primary-teal);
}

.dashboard-date-btn:hover:not(.active) {
    background: #F5F5F5;
    border-color: #BDBDBD;
}


.no-tasks-container {
    text-align: center;
    /* padding: 3rem 2rem; */
    padding: 88px 14px 34px 14px;
}
.member-no-tasks-container {
    text-align: center;
    /* padding: 3rem 2rem; */
    padding: 85px 14px 34px 14px;
}

.tasks-container {
    min-height: 250px;
}

.ub-tasks-container {
    min-height: 390px;
}

.tasks-list {
    padding: 14px;
}

.tasks-list-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.tasks-list-title {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: #F0F4F5;
    transform: translateX(2px);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #D0D0D0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-checkbox:hover {
    border-color: var(--primary-teal);
}

.task-checkbox.checked {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
    position: relative;
}

.task-checkbox.checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.task-details {
    flex: 1;
}

.task-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 13px;
}

.task-meta {
    display: flex;
    gap: 1rem;
    font-size: 13px;
    color: #999;
}

.task-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.task-priority.high {
    background: #FFEBEE;
    color: #D32F2F;
}

.task-priority.medium {
    background: #FFF3E0;
    color: #F57C00;
}

.task-priority.low {
    background: #E8F5E9;
    color: #388E3C;
}

.no-tasks-icon {
    font-size: 4rem;
    color: #E0E0E0;
    margin-bottom: 1rem;
}

.no-tasks-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: 0.8px;
}

.no-tasks-subtext {
    color: #8C8C8C;
    margin-bottom: 1.5rem;
    letter-spacing: 0.8px;
    font-size: 12px;
}

.btn-add-task {
    background: var(--primary-teal);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-add-task:hover {
    background: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.org-chart {
    padding: 1rem;
    overflow-y: auto;
    max-height: 430px;
    min-height: 429px;
}

.member-org-chart {
    /* padding: 30px; */
    /* overflow-y: auto; */
    max-height: 445px;
    min-height: 445px;
}
.member-org-chart h6 {
    font-weight: 600;
}
.recurring-table td{
    padding-top: 20px;
    color: #9C9C9C;
    font-weight: 500;
    font-size: 13px;
}
.recurrence-badge, .bg-recurrence-badge-subtle{
    background-color: #F5F6FA;
    color: #00AFAD;
    padding: 3px 9px;
    letter-spacing: 1px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.view-badge{
    background-color: #F5F6FA;
    color: #00AFAD;
    padding: 1px 5px;
    letter-spacing: 1.5px;
    border-radius: 20px;
}
.view-all-btn{
    letter-spacing: 1px;
    padding-left: 20px;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 20px;
}
.member-recurring-title{
    font-size: 18px;
}
th{
    font-weight: 600;
    font-size: 14px;
}

.org-node {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 1rem;
    position: relative;
}

.org-node-name {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 1rem;
}

.org-node-title {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.org-line {
    width: 2px;
    height: 40px;
    background: #E0E0E0;
    margin: 0 auto;
}

.org-children {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.info-details {
    flex: 1;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.best-performers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recurring-task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.info-section {
    margin-bottom: 5px;
}

.info-label-simple {
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 3px;
}

.info-value-simple {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-teal);
}

.info-value-dark {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.recurring-tasks-title {
    color: var(--primary-teal);
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
}

.recurring-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-info {
    display: flex;
    flex-direction: column;
}

.task-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 13px;
}

.task-assignee {
    font-size: 13px;
    color: #999;
}

.task-assignee i {
    font-size: 13px;
    margin-right: 0.25rem;
}

.task-date {
    color: #999;
    font-size: 13px;
}

.task-date i {
    margin-right: 0.25rem;
}

.fab-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary-teal);
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.fab-button:hover {
    background: var(--dark-teal);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }

    .col[style*="margin-left"] {
        margin-left: 0 !important;
    }

    .org-children {
        flex-direction: column;
        gap: 1rem;
    }

    .department-title {
        font-size: 1.5rem;
    }

    .department-icons-right {
        right: 0.5rem;
    }

    .department-icon-small {

        font-size: 1rem;
    }
}
/*TASKS*/


.form-label{
    font-size: 12px;
}
.avatar-xl {
    width: 8rem;
    height: 8rem;
    font-size: 3rem;
}

.avatar-title {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.badge{
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    /* background-color: #F5F6FA !important; */
}
.progress {
    border-radius: 4px;
}

/* Date Tab Buttons */
.date-tab-btn {
    background: #fff;
    border: 2px solid #e9ebec;
    color: #495057;
    padding: 12px 8px;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
}

.date-tab-btn:hover {
    background: rgba(10, 179, 156, 0.1);
    border-color: #0ab39c;
    transform: translateY(-2px);
}

.date-tab-btn.active {
    background: linear-gradient(135deg, #0ab39c 0%, #0d9488 100%);
    border-color: #0ab39c;
    color: #fff;
    box-shadow: 0 4px 8px rgba(10, 179, 156, 0.3);
}

.date-tab-btn.active small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Table Row Hover */
.task-row:hover {
    background-color: rgba(10, 179, 156, 0.05);
    cursor: pointer;
}

/* Center Floating Button */
.center-floating-btn {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.center-floating-btn:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(10, 179, 156, 0.4) !important;
}

/* Bottom-Right Floating Button */
.floating-add-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.floating-add-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 20px rgba(10, 179, 156, 0.4) !important;
}

/* Task Form Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.task-form-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    width: 90%;
    max-width: 700px;
    animation: modalSlideIn 0.3s ease;
}

/* Task Detail Modal */
.task-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    width: 90%;
    max-width: 800px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Loading state */
.opacity-50 {
    opacity: 0.5;
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .date-tab-btn {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Tab Customization */
.nav-tabs-custom {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs-custom .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link:hover {
    color: #0d6efd;
    background: transparent;
}

.nav-tabs-custom .nav-link.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    background: transparent;
}

.nav-tabs-custom .nav-link .badge {
    font-size: 0.7rem;
}

/* Task Detail Modal */
.task-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    width: 95%;
    max-width: 900px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal Styles */
.submission-modal-container,
.feedback-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1060;
    width: 90%;
    max-width: 800px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1055;
}

/* Responsive */
@media (max-width: 768px) {
    .task-detail-modal {
        width: 98%;
    }

    .nav-tabs-custom .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

.tasks-scrollable {
    min-height: 344px;
    max-height: 344px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.user-tasks-scrollable {
    min-height: 344px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
@media (min-width: 1790px) {
    .tasks-scrollable{
        max-height: 344px;
    }
    .user-tasks-scrollable{
        max-height: 460px;
    }
    .user-detail-top-right-div{
        padding: 46px 50px 46px 50px;
    }
}

.user-detail-top-right-div{
    padding: 46px 30px 46px 30px;
}

.form-check-input:checked{
    background-color: #00adb5;
    border-color: #00adb5;
}


/* DEPARTMENT MODULE */


  /* Search Bar Styles */
  .search-container {
    max-width: 500px;
    margin: 3rem auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); */
    border: 1px solid #707070;
    overflow: hidden;
}

.search-icon-btn {
    background: var(--primary-teal);
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-icon-btn:hover {
    background: var(--dark-teal);
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 14.5px;
    outline: none;
    color: #666;
}

.search-input::placeholder {
    color: #999;
    font-weight: 500;
    font-size: 14.5px;
}

/* Department Card Styles */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.department-card {
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.department-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.15);
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, rgba(0, 188, 212, 0.05) 0%, transparent 100%);
    transition: height 0.3s ease;
}

.department-card:hover::before {
    height: 100%;
}

.department-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--primary-teal);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.department-card:hover .department-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
}

.department-icon {
    font-size: 2rem;
    color: white;
}

.department-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .departments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .department-card {
        padding: 2rem 1.5rem;
    }

    .department-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .department-icon {
        font-size: 1.75rem;
    }

    .department-name {
        font-size: 1.1rem;
    }
}


/* DEPARTMENT MODULE */


/* ASSIGNED TASKS LIST */

        .main-container {
            padding: 15px 30px;
        }

        /* Filter Pills */
        .filter-pills {
            border: 2px solid #d0d0d0;
            background: white;
            border-radius: 15px;
            padding: 0.6rem 1rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 1.5rem;

        }

        .pill-btn {
            background: var(--primary-teal);
            color: white;
            border: none;
            border-radius: 25px;
            padding: 0.6rem 1.2rem;
            margin-right: 0.6rem;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .pill-btn-first {
            background: var(--primary-teal);
            color: white;
            border: none;
            border-radius: 11px;
            padding: 7px 6px 7px 14px;
            margin-right: 2rem;
            font-weight: 500;
            font-size: 19px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .card-left p {
            margin-bottom: 0px;
        }

        /* .pill-btn:hover {
            background: var(--teal-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        } */

        /* Search Icon & Input */
        .search-icon {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            color: white;
            background: var(--primary-teal);
            width: 60px;
            border-radius: 25px 0 0 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            z-index: 2;
        }

        .search-input {
            border: 0.71px solid #707070;
            width: 100%;
            /* border: 2px solid #707070; */
            border-radius: 22px;
            padding: 0.7rem 1.2rem 0.7rem 4.8rem;
            font-size: 0.95rem;
            font-weight: 500;
            color: #6c757d;
            transition: all 0.3s ease;
            background: white;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-teal);
            box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.15);
        }

        .search-input::placeholder {
            color: #6c757d;
            font-weight: 500;
        }

        /* Main Grid Layout */
        .main-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        /* Left Side - Card List */
        .card-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: 500px;
            overflow-y: auto;
            padding: 5px;
        }

        .incentive-card {
            background: var(--white);
            /* background: #757678; */

            /* border: 2px solid #757678; */
            border: 2px solid #d0d0d0;
            border-radius: 15px;
            padding: 16px 22px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .incentive-card:hover {
            border-color: var(--primary-teal);
            box-shadow: 0 4px 16px rgba(23, 181, 181, 0.15);
        }

        .incentive-card.active {
            background: #ffffff;
            border-color: var(--primary-teal);
        }

        .card-left h3 {
            font-size: 16px;
            font-weight: 600;
            /* margin: 0 0 3px 0; */
            color: #000000;

        }

        /* .card-left .due-date {
                                                                                font-size: 12px;
                                                                                color: var(--text-muted);
                                                                                margin: 0;
                                                                            } */
        .card-left .due-date .due-sapn {
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.3px;
            line-height: 10px;
            color: #757678;
        }

        .card-left .due-date .due-date-span {
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.3px;
            line-height: 10px;
            margin-left: 2px;
            color: #000000;
        }

        .card-right {
            text-align: left;
            /* margin-right: 43px; */
        }

        .freq-label {
            font-family: 'Montserrat', sans-serif;
            font-size: 12px;
            font-weight: 600;
            color: #9e9e9e;
            margin: 0 0 3px 0;
            letter-spacing: 0.2px;
        }

        .freq-value {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-dark);
            margin: 0;
        }

        /* Right Side - Detail Panel - REDESIGNED */
        .detail-panel {
            background: var(--white);
            border: 2px solid #d0d0d0;
            border-radius: 15px;
            padding: 28px 32px;
        }

        .detail-header {
            margin-bottom: 22px;
        }

        .detail-title {
            font-size: 19px;
            font-weight: 600;
            margin: 0 0 14px 0;
            color: var(--text-dark);
            line-height: 1.3;
        }

        .detail-desc-wrapper {
            background: #F5F6FA;
            /* border: 2px solid var(--white); */
            /* border-radius: 16px; */
            padding: 10px 15px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
        }

        .detail-desc {
            flex: 1;
            font-family: 'Montserrat', sans-serif;
            font-size: 13px;
            font-weight: 500;
            font-style: normal;
            color: #000;
            line-height: 1.55;
            margin: 0;
            letter-spacing: 0%;
        }

        .desc-icon {
            position: relative;
            width: 27px;
            height: 27px;
            bottom: -5px;
            left: 10px;
        }

        /* .desc-icon:hover {
                                                                                                                                                background: var(--teal-dark);
                                                                                                                                                transform: rotate(15deg);
                                                                                                                                            } */

        .detail-fields {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .field-box {
            background: transparent;
            /* background: #757678; */
            /* background: #F5F6FA;# */

            border: 1px solid #00AFAD;
            border-radius: 8px;
            padding: 14px 18px;
        }

        .field-box label {
            font-family: 'Montserrat', sans-serif;
            font-size: 11.5px;
            font-weight: 600;
            color: var(--label-color);
            margin: 0 0 5px 0;
            display: block;
        }

        .field-box .value {
            font-size: 14.5px;
            font-weight: 600;
            color: var(--text-dark);
            margin: 0;
        }

        .search-bar {
            padding: 12px 37px 19px 16px;
        }

        /* Floating Add Button */
        .add-btn-float {
            position: fixed;
            bottom: 40px;
            right: 40px;
            width: 60px;
            height: 60px;
            background: var(--primary-teal);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 34px;
            font-weight: 300;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(23, 181, 181, 0.4);
            transition: all 0.3s ease;
            z-index: 1000;
            border: none;
        }

        .add-btn-float:hover {
            background: var(--teal-dark);
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(23, 181, 181, 0.5);
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .main-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .main-container {
                padding: 15px 20px;
            }

            .filter-pills {
                padding: 1rem;
            }

            .pill-btn {
                margin-bottom: 0.5rem;
                margin-right: 0.5rem;
                font-size: 0.85rem;
                padding: 0.4rem 1rem;
            }

            .search-icon {
                width: 55px;
                font-size: 1rem;
            }

            .search-input {
                font-size: 0.9rem;
                padding: 0.75rem 1rem 0.75rem 4.5rem;
                margin-top: 0.5rem;
            }

            .search-box {
                max-width: 100%;
                margin-top: 0.5rem;
            }

            .detail-fields {
                grid-template-columns: 1fr;
            }

            .add-btn-float {
                bottom: 30px;
                right: 30px;
                width: 60px;
                height: 60px;
                font-size: 32px;
            }

            .detail-panel {
                padding: 25px 20px;
            }
            .detail-fields-right-card {
                grid-template-columns: 1fr;
            }
        }


        /* Filter Dropdown Panel */
        .filter-dropdown-panel {
            position: absolute;
            top: 120px;
            left: 220px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            z-index: 1500;
            width: 350px;
            overflow: hidden;
            display: none;
        }

        .filter-dropdown-panel.active {
            display: block;
            animation: dropdownFadeIn 0.3s ease;
        }

        @keyframes dropdownFadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .filter-panel-header {
            background: var(--primary-teal);
            color: white;
            padding: 0.25rem 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .filter-panel-title {
            font-size: 16px;
            font-weight: 600;
            margin: 0;
        }

        .clear-all-link {
            background: transparent;
            border: none;
            color: white;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            padding: 0.25rem 0.75rem;
            text-decoration: none;
            transition: opacity 0.3s ease;
        }

        .clear-all-link:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        .filter-panel-body {
            display: flex;
            height: auto;
        }

        .filter-categories {
            width: 120px;
            background: #F8F8F8;
            border-right: 1px solid #E5E5E5;
            padding: 0;
        }

        .filter-category-btn {
            width: 100%;
            background: transparent;
            border: none;
            border-left: 3px solid transparent;
            padding: 5px 10px;
            font-size: 12px;
            color: #666;
            font-weight: 500;
            cursor: pointer;
            text-align: left;
            transition: all 0.2s ease;
        }

        .filter-category-btn:hover {
            background: #EEEEEE;
            color: #333;
        }

        .filter-category-btn.active {
            background: white;
            color: var(--primary-teal);
            border-left-color: var(--primary-teal);
            font-weight: 500;
        }

        .filter-options-panel {
            flex: 1;
            padding: 10px;
            overflow-y: auto;
        }

        .filter-options-panel::-webkit-scrollbar {
            width: 6px;
        }

        .filter-options-panel::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .filter-options-panel::-webkit-scrollbar-thumb {
            background: var(--primary-teal);
            border-radius: 10px;
        }

        .filter-search-box {
            position: relative;
            margin-bottom: 6px;
        }

        .filter-search-icon-inner {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 30px;
            background: var(--primary-teal);
            border-radius: 8px 0 0 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
        }

        .filter-search-input-box {
            width: 100%;
            padding: 2px 10px 2px 35px;
            border: 2px solid #E0E0E0;
            border-radius: 8px;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .filter-search-input-box:focus {
            border-color: var(--primary-teal);
        }

        .filter-search-input-box::placeholder {
            color: #999;
        }

        .filter-options-list {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            max-height: 180px;
        }

        .filter-option-item {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            padding: 1px;
        }

        .filter-option-checkbox {
            width: 15px;
            height: 15px;
            min-width: 15px;
            border: 2px solid #BDBDBD;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            background: white;
        }

        .filter-option-item input[type="checkbox"] {
            display: none;
        }

        .filter-option-item input[type="checkbox"]:checked + .filter-option-checkbox {
            background: var(--primary-teal);
            border-color: var(--primary-teal);
        }

        .filter-option-item input[type="checkbox"]:checked + .filter-option-checkbox::after {
            content: '✓';
            position: absolute;
            color: white;
            font-size: 14px;
            font-weight: bold;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .filter-option-label {
            font-size: 12px;
            color: #333;
            cursor: pointer;
            user-select: none;
            font-weight: 500;
        }

        .filter-panel-footer {
            padding: 10px;
            border-top: 1px solid #E5E5E5;
            display: flex;
            justify-content: flex-end;
            background: white;
        }

        .apply-btn {
            background: var(--primary-teal);
            color: white;
            border: none;
            padding: 5px 13px;
            border-radius: 25px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .apply-btn:hover {
            background: var(--dark-teal);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
        }

/* ASSIGNED TASKS LIST */

.card-right-task-manager {
    padding: 0 9px 0 0;
    text-align: left;
}

.freq-label-card-right {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    padding: 5px 13px 7px 0px;
    display: inline-block;
    background: #00AFAD26;
    padding: 6px 12px;
    border-radius: 6px;
}
/* TASK MASTER */

.detail-fields-right-card {
    display: grid;
    grid-template-columns: 35% 25%;
    gap: 21px;
    margin-bottom: 29px;
}

.field-button {
    background: transparent;
    border: 2px solid #00AFAD;
    border-radius: 25px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 250px;
}

.field-button:hover {
    background: var(--teal-light);
}

.assign-button {
    width: 100%;
    max-width: 160px;
    margin-left: auto;
    display: block;
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assign-button:hover {
    background: var(--dark-teal);
}

.search-bar {
    padding: 12px 37px 19px 16px;
}
.invalid-feedback{
    display: block;
    font-size: 10px;

}
.label{
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 1300px) and (max-width: 1700px) {

    .field-button{
        width: 180px;
    }
}