/* =============================================
   NOTIFICATION & PENDING WORK STYLES
   ============================================= */

/* Pending Work Styles */
.pending-wrap {
    position: relative;
    overflow: hidden;
}

.pending-item {
    transition: transform 0.35s ease, opacity 0.35s ease, background 0.2s;
}

/* Slide item left to reveal delete panel */
.pending-wrap.revealed .pending-item {
    transform: translateX(-120px);
}

.nm-item-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    background: transparent;
    border-bottom: 1px solid #f3f5f7;
}

.nm-item-wrapper .nm-item {
    border-bottom: none;
}

.nm-item-wrapper:hover {
    background: #f4f8fd;
}

.nm-item-wrapper:hover .nm-item {
    background: transparent;
}

.nm-item-wrapper:has(.nm-item.unread) {
    background: #E6F1FB;
    border-left: 3px solid #185FA5;
}

.nm-item-wrapper:has(.nm-item.unread):hover {
    background: #B5D4F4;
}

.nm-item-wrapper .nm-item.unread {
    border-left: none;
    background: transparent;
    padding-left: 15px;
}

.download-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #185FA5;
    background: transparent;
    border: none;
    text-decoration: none;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.2s;
}

.download-icon-btn:hover {
    background: #B5D4F4;
    color: #0C447C;
}

.open-btn {
    border-radius: 12px;
    padding: 6px 14px;
    font-weight: 500;
}

/* Red panel: hidden right, slides in when revealed */
.pending-remove-bg {
    position: absolute;
    inset: 0;
    left: auto;
    width: 120px;
    right: 0;
    background: linear-gradient(135deg, #ff5f6d, #d93025);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transform: translateX(120px);
    transition: transform .35s ease;
}

.pending-wrap.revealed .pending-remove-bg {
    transform: translateX(0);
}

/* Confirm button inside the red panel */
.pending-confirm-btn {
    background: none;
    border: 1.5px solid rgba(255, 255, 255, .75);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background .2s;
}

.pending-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #fce8e8;
    color: #d93025;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    cursor: pointer;
    transition: .25s;
    z-index: 3;
    flex-shrink: 0;
}

.pending-remove-btn:hover {
    background: #d93025;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.pending-confirm-btn:hover {
    background: rgba(255, 255, 255, .2);
}

.top-nav-icon {
    color: rgb(45, 131, 199);
}

.nm-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nm-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e24b4a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 1;
}

/* Notification Menu */
.notification-menu {
    width: 1180px !important;
    max-width: 98vw !important;
    max-height: 85vh !important;
    min-width: 820px;
    min-height: 420px;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .18) !important;
    background: #ffffff !important;
    position: relative;
}

/* Custom Resize Handle */
.resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 25px;
    height: 25px;
    cursor: nwse-resize;
    z-index: 100;
    opacity: 0.6;
}

.resize-handle:hover {
    opacity: 1;
}

.nm-shared-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #ebeef0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    color: rgb(45, 131, 199);
}

.nm-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100% - 55px);
}

.nm-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nm-item.unread {
    border-left: 3px solid #185FA5;
    background: #E6F1FB;
    padding-left: 15px;
}

.nm-item.unread .nm-msg {
    color: #0C447C;
    font-weight: 600;
}

.nm-item.unread .nm-time {
    color: #378ADD;
}

.nm-item.unread:hover {
    background: #B5D4F4;
}

.nm-col:first-child {
    border-right: 1px solid #ebeef0;
}

.nm-col-head {
    padding: 10px 18px;
    background: #f7f9fc;
    border-bottom: 1px solid #ebeef0;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8a9bb0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nm-items-scroll {
    flex: 1;
    overflow-y: auto;
}

.nm-item {
    display: flex;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #f3f5f7;
    text-decoration: none;
    color: inherit;
}

.nm-item:hover {
    background: #f4f8fd;
}

.nm-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ic-blue {
    background: rgba(45, 131, 199, .12);
    color: rgb(45, 131, 199);
}

.ic-amber {
    background: rgba(239, 159, 39, .15);
    color: #ba7517;
}

.nm-content {
    flex: 1;
}

.nm-msg {
    font-size: 13px;
    line-height: 1.45;
}

.nm-time {
    font-size: 11.5px;
    color: #9aabb8;
    margin-top: 4px;
}

.pend-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 10px;
    background: #f7f9fc;
    border-bottom: 1px solid #ebeef0;
}

.pstat {
    background: #fff;
    border: 0.5px solid #dde3ea;
    border-radius: 9px;
    padding: 9px 6px;
    text-align: center;
}

.pstat-n {
    font-size: 21px;
    font-weight: 700;
    color: rgb(45, 131, 199);
}

.pstat-n.is-overdue {
    color: #a32d2d;
}

.nm-col-footer {
    padding: 12px 16px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #ebeef0;
    margin-top: auto;
}

/* =============================================
   CHECKLIST DROPDOWN STYLES
   ============================================= */

/* Checklist Dropdown Custom Styles */
#checklistDropdownMenu {
    width: 900px !important;
    max-width: 95vw !important;
    max-height: 90vw;
}

.checklist-tab-btn {
    transition: all 0.2s ease;
}

.checklist-tab-btn:hover {
    background: #e8f0fe !important;
    color: #185FA5 !important;
}

.checklist-tab-btn.active {
    background: #185FA5 !important;
    color: #fff !important;
}

.checklist-user-group {
    transition: all 0.2s ease;
}

.checklist-user-group:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.checklist-user-docs {
    transition: all 0.2s ease;
}

/* Custom scrollbar for checklist dropdown */
#checklistDropdownMenu .filter-scrollable-content::-webkit-scrollbar,
#checklistDropdownMenu div[style*="overflow-y:auto"]::-webkit-scrollbar {
    width: 6px;
}

#checklistDropdownMenu .filter-scrollable-content::-webkit-scrollbar-track,
#checklistDropdownMenu div[style*="overflow-y:auto"]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#checklistDropdownMenu .filter-scrollable-content::-webkit-scrollbar-thumb,
#checklistDropdownMenu div[style*="overflow-y:auto"]::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#checklistDropdownMenu .filter-scrollable-content::-webkit-scrollbar-thumb:hover,
#checklistDropdownMenu div[style*="overflow-y:auto"]::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Legacy Checklist Menu Styles (keep for compatibility) */
.checklist-menu {
    width: 420px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .13);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}

/* header */
.cl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    list-style: none;
}

.cl-header-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-body-color);
}

.cl-header-title i {
    color: #BA7517;
    font-size: 15px;
}

.cl-view-all {
    font-size: 12px;
    color: #185FA5;
    text-decoration: none;
}

.cl-view-all:hover {
    text-decoration: underline;
}

/* stats row */
.cl-stats-row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    background: var(--bs-tertiary-bg, #f8f9fa);
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-right: 1px solid rgba(0, 0, 0, .07);
}

.cl-stat:last-child {
    border-right: none;
}

.cl-stat-n {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-body-color);
}

.cl-stat-l {
    font-size: 10px;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 2px;
    text-align: center;
}

.cl-red {
    color: #A32D2D !important;
}

.cl-amber {
    color: #854F0B !important;
}

.cl-green {
    color: #3B6D11 !important;
}

/* project row */
.cl-proj-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    list-style: none;
}

.cl-proj-label {
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}

.cl-proj-select {
    flex: 1;
    font-size: 12px;
    padding: 3px 7px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color);
    cursor: pointer;
}

.cl-prog-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cl-prog-bar {
    width: 60px;
    height: 4px;
    background: rgba(0, 0, 0, .1);
    border-radius: 4px;
    overflow: hidden;
}

.cl-prog-fill {
    height: 100%;
    background: #378ADD;
    border-radius: 4px;
}

.cl-prog-txt {
    font-size: 11px;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}

/* doc list */
.cl-list {
    max-height: 240px;
    overflow-y: auto;
}

.cl-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    border-left: 3px solid transparent;
    transition: background .12s;
}

.cl-item:last-child {
    border-bottom: none;
}

.cl-item:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.cl-item-overdue {
    border-left-color: #E24B4A;
}

.cl-item-soon {
    border-left-color: #EF9F27;
}

.cl-item-uploaded {
    border-left-color: #B4B2A9;
    opacity: .65;
}

.cl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cl-dot-overdue {
    background: #E24B4A;
}

.cl-dot-soon {
    background: #EF9F27;
}

.cl-dot-uploaded {
    background: #639922;
}

.cl-item-body {
    flex: 1;
    min-width: 0;
}

.cl-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-item-meta {
    font-size: 11px;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 1px;
}

/* tags */
.cl-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cl-tag-red {
    background: #FCEBEB;
    color: #A32D2D;
}

.cl-tag-amber {
    background: #FAEEDA;
    color: #854F0B;
}

.cl-tag-green {
    background: #EAF3DE;
    color: #3B6D11;
}

/* upload button */
.cl-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
    padding: 3px 8px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 6px;
    background: transparent;
    color: var(--bs-body-color);
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: background .12s;
}

.cl-upload-btn:hover {
    background: var(--bs-tertiary-bg, #f0f0f0);
    color: var(--bs-body-color);
}

.cl-upload-btn.cl-done {
    color: var(--bs-secondary-color, #6c757d);
    border-color: rgba(0, 0, 0, .08);
    pointer-events: none;
}

/* footer */
.cl-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-top: 1px solid rgba(0, 0, 0, .07);
    list-style: none;
}

.cl-footer a {
    font-size: 12px;
    color: #185FA5;
    text-decoration: none;
}

.cl-footer a:hover {
    text-decoration: underline;
}

.cl-footer-right {
    font-size: 11px;
    color: var(--bs-secondary-color, #6c757d);
}