:root {
    --primary-color: #008489;
    --bg-color: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-color);
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 16px;
    color: #333;
}

/* Font size adjustment for small screens */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .stat-val {
        font-size: 16px !important;
    }
}

/* header css */
.navbar.sticky-top {
    background: white;
    border-bottom: 2px solid #eee;
    padding: 12px 20px;
}

.main-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #006b6f 100%);
    color: #ffffff;
    border: none;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 107, 111, 0.25); /* Premium soft glow */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Icon અને text વચ્ચેની જગ્યા */
    cursor: pointer;
}

/* Icon Animation */
.main-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Hover State */
.main-btn:hover {
    background: linear-gradient(135deg, #006b6f 0%, #004d50 100%);
    color: #ffffff;
    transform: translateY(-2px); /* બટન થોડું ઉપર આવશે */
    box-shadow: 0 8px 22px rgba(0, 107, 111, 0.45); /* પડછાયો (Glow) વધશે */
}

/* Hover પર Icon ફરશે (Rotate) */
.main-btn:hover i {
    transform: rotate(90deg);
}

/* Click (Active) State */
.main-btn:active {
    transform: translateY(1px); /* ક્લિક કરવા પર બટન દબાશે */
    box-shadow: 0 2px 8px rgba(0, 107, 111, 0.3);
}

/* ================= COMMAND CENTER BUTTON (Ctrl+K) ================= */
.command-center-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.command-center-btn:hover {
    background: #ffffff;
    border-color: var(--brand, #6154f2);
    box-shadow: 0 0 0 3px rgba(97, 84, 242, 0.1);
}

.shortcut-keys {
    display: flex;
    align-items: center;
}

.shortcut-keys kbd {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 700;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.suggestion-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    border: 1px solid #e2e8f0;
    max-height: 250px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background-color: #f8fafc;
}

.suggestion-item small {
    color: #94a3b8;
    display: block;
}

.dropdown-menu {
    border-radius: 10px;
    z-index: 2000 !important;
}

/*New Notification css*/
.notif-item { 
    padding: 12px 16px; 
    border-bottom: 1px solid #f4f5f7; 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    position: relative; 
    cursor: pointer; 
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    max-height: 150px; 
    opacity: 1;
    overflow: hidden; 
    transform: translateX(0);
}

.notif-item:hover { 
    background: #fafbfc; 
}

.notif-item.is-unread-bg { 
    background: #f7f6ff; 
}

.notif-item.slide-out {
    opacity: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 0 solid transparent !important;
    transform: translateX(50px) !important; 
    pointer-events: none !important;
}

.src-deadline {
    background-color: #ffeef0 !important;
    color: #f63c5b !important;
}

.deadline-mini {
    background-color: #f63c5b !important;
    color: #ffffff !important;
}

.assign-mini { background-color: #0052cc !important; color: white !important; }
.status-mini { background-color: #ff9900 !important; color: white !important; }
.chat-mini { background-color: #00bfa5 !important; color: white !important; }
.mention-mini { background-color: #6154f2 !important; color: white !important; }
.notif-item-body { flex: 1; min-width: 0; padding-right: 40px; }
.notif-item-text { font-size: 13px; color: #172b4d; line-height: 1.4; margin-bottom: 4px; }
.notif-item-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #7a869a; }
.badge-src { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
.src-zendesk { background: #e0f2f1; color: #03363D; }
.src-jira { background: #deebff; color: #0747a6; }
.src-chat { background: #e8f5e9; color: #1b5e20; }
.src-trello { background: #e6f4ff; color: #0c66e4; }
.src-slack { background: #fbe4f2; color: #611f69; }
.src-github { background: #f1f2f4; color: #1f2328; }
.badge-prio { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.prio-urgent { background: #ffebe6; color: #bf2600; }
.prio-high { background: #fffae6; color: #b76e00; }
.prio-normal { background: #e3fcef; color: #006644; }
.blue-dot { width: 7px; height: 7px; background: #6154f2; border-radius: 50%; display: inline-block; margin-top: 6px; flex-shrink: 0; }
.notif-item-actions { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: none; gap: 6px; }
.notif-item:hover .notif-item-actions { display: flex; }
.action-circle-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e2e4e8; background: #fff; display: flex; align-items: center; justify-content: center; color: #6b778c; font-size: 12px; transition: all 0.2s; cursor: pointer; }
.action-circle-btn:hover { background: #f4f5f7; color: #172b4d; }
.active-tab-btn { background: #fff !important; color: #6154f2 !important; border-color: #b3acf8 !important; font-weight: 600; }

.blue-dot {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease !important;
    transform: scale(1);
    opacity: 1;
}

.blue-dot.fade-circle {
    transform: scale(0) !important;
    opacity: 0 !important;
}

.action-circle-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.notif-item.smooth-collapse {
    opacity: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 0 solid transparent !important;
    transform: translateX(30px) !important;
    pointer-events: none !important;
    transition: 
        background-color 0.5s ease, 
        opacity 0.4s ease, 
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.notif-type-mini-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid #fff;
}
.mention-mini { background-color: #03363D; }
.assign-mini { background-color: #0747a6; }
.status-mini { background-color: #0c66e4; }
.chat-mini { background-color: #1b5e20; }
.avatar-initials {
    width: 38px; 
    height: 38px; 
    background: linear-gradient(135deg, #7c3aed, #4f46e5); 
    color: white; 
    font-size: 13px; 
    font-weight: 600;
    letter-spacing: 0.5px;
}
    
.text-teal {
    color: #38b2ac !important;
}

#notificationToast {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-width: 300px;
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

#notificationToast .bg-primary {
    background-color: #38b2ac !important;
}

#notificationToast .btn-primary{ 
    background-color: #38b2ac;
    border: none;
}

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    #otp_input {
        text-align: center;
        background-color: #f8fafc;
    }

    #otp_input:focus {
        background-color: #fff;
        border-color: #38b2ac;
    }

    .animate__fadeIn {
        animation: fadeIn 0.5s;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
#navbarContent {
    justify-content: end;
}

.dropdown-item {
    color: #202020;
    font-size: 0.9rem;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background: #f0f2f5;
    color: #00a884;
}

.attachment-drop {
    transition: background 0.3s ease;
}

.attachment-drop:hover {
    background-color: #f1f7ff !important;
}

.attachment-drop {
    border: 2px dashed #007bff;
    background: #f8fbff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.attachment-drop:hover {
    background: #eef6ff;
    border-color: #0056b3;
}
/* =======================================================
Floating Window
======================================================= */
#tikitdesk-wrapper .td-floating-nav {
    position: fixed;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -4px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8); 
    z-index: 11;
    font-family: 'Inter', -apple-system, sans-serif;
}

#tikitdesk-wrapper .td-nav-btn {
    position: relative;
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    color: #475569; 
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -0.1px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

#tikitdesk-wrapper .td-nav-btn svg,
#tikitdesk-wrapper .td-nav-btn i {
    width: 16px !important;
    height: 16px !important;
    color: #64748B;
    transition: color 0.2s ease;
}

#tikitdesk-wrapper .td-nav-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0F172A;
    transform: translateY(-0.5px);
}

#tikitdesk-wrapper .td-nav-btn:hover svg,
#tikitdesk-wrapper .td-nav-btn:hover i {
    color: #5D5CFF;
}

#tikitdesk-wrapper .td-nav-btn.active {
    background: #FFFFFF;
    color: #5D5CFF;
    box-shadow: 
        0 1px 3px 0 rgba(0, 0, 0, 0.05),
        0 4px 12px 0 rgba(93, 92, 255, 0.08);
}

#tikitdesk-wrapper .td-nav-btn.active svg,
#tikitdesk-wrapper .td-nav-btn.active i {
    color: #5D5CFF;
}

#tikitdesk-wrapper .td-popover {
    position: absolute;
    bottom: 45px; 
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 240px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 30px -3px rgba(15, 23, 42, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#tikitdesk-wrapper .td-popover.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#tikitdesk-wrapper .td-popover-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 4px;
}

#tikitdesk-wrapper .td-pop-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    transition: .15s ease;
    cursor: pointer;
}

#tikitdesk-wrapper .td-pop-item-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

#tikitdesk-wrapper .td-pop-item-link:hover {
    background: #EEF2FF;
    color: #5D5CFF;
}

#tikitdesk-wrapper .td-nav-btn.td-filter-applied {
    background: #FFFFFF !important;
    color: #5D5CFF !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px 0 rgba(93, 92, 255, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(93, 92, 255, 0.3) !important;
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: filterPulse 0.5s ease-in-out;
}

#tikitdesk-wrapper .td-nav-btn.td-filter-applied::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: #5D5CFF;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

#tikitdesk-wrapper .td-nav-btn.td-filter-applied i {
    color: #5D5CFF !important;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

#tikitdesk-wrapper .td-nav-btn.td-filter-applied:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px 0 rgba(93, 92, 255, 0.25), 0 2px 5px 0 rgba(0, 0, 0, 0.07) !important;
    background: #FAFAFF !important;
}

#tikitdesk-wrapper .td-nav-btn.td-filter-applied:hover::after {
    left: 15%;
    width: 70%;
}

#tikitdesk-wrapper .td-nav-btn.td-filter-applied:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px 0 rgba(93, 92, 255, 0.15) !important;
}

@keyframes filterPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(93, 92, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(93, 92, 255, 0);
    }
    100% {
        transform: scale(1);
        translateY(-2px);
    }
}

#tikitdesk-wrapper .td-pop-item-link.bg-primary-view {
    background-color: #5D5CFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(93, 92, 255, 0.2);
}

/* SEARCH INPUT INSIDE FILTER */
#tikitdesk-wrapper .td-filter-search-wrapper {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #F1F5F9;
}

#tikitdesk-wrapper .td-filter-search-input {
    width: 100%;
    height: 36px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 500;
    outline: none;
    background: #FFFFFF;
    color: #0F172A;
}

#tikitdesk-wrapper .td-filter-search-input:focus {
    border-color: #5D5CFF;
}

#tikitdesk-wrapper .td-tooltip {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #0F172A;
    color: #FFFFFF;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: .15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#tikitdesk-wrapper .td-nav-btn:hover .td-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.stat-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: 0.3s;
    border-bottom: 4px solid #fff;
    min-width: 155px;
}

@media (min-width: 1201px) {
    .stat-card {
        min-width: 11.5%;
        max-width: 11.5%;
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary-color);
}

.stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    display: block;
}

.stat-label {
    color: #777;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Design */
.table-box {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    width: 100%;
    overflow-x: auto;
    display: block;
}

.table{
    min-width: 500px; 
    max-height: 800px;
    overflow: auto;
}

.table thead {
    background-color: #f1f4f4;
}

.table th {
    border: none;
    padding: 15px 5px 15px 25px;
    font-weight: 600;
    color: #555;
    text-align: center;
    white-space: nowrap;
}

.table th i{
    opacity: 0;
}

.table th:hover i{
    opacity: 1;
}

table td,
table th{
    vertical-align: middle;
}

.table td {
    padding: 15px !important;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    white-space: nowrap;
}

.table tr{
    position: relative;
}

.table tr:hover td:last-child {
    position: sticky;
    right: 0;
    background-color: white; 
    z-index: 5;
    border-left: 1px solid #f0f0f0;
}

.table tr:hover td:last-child {
    background-color: #f8f9fa !important;
}

.table-danger-custom {
    background-color: #fff5f5 !important;
    border-left: 4px solid #f56565 !important;
}

.table-danger-custom td {
    color: #c53030 !important; 
}

 .tikit-title-cell {
    max-width: 200px;
    overflow: hidden;         
    text-overflow: ellipsis;
    white-space: nowrap;      
    cursor: pointer;          
    transition: color 0.2s ease;
}

.skeleton-block {
    position: relative;
    overflow: hidden;
    background-color: #eaedf1;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    width: 100%;
}

.skeleton-block::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.6s infinite;
    content: '';
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-badge {
    height: 22px;
    border-radius: 50px;
    width: 75px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #eef1f5;
}

.shimmer-block {
    position: relative;
    overflow: hidden;
    background-color: #eaedf1;
    border-radius: 4px;
    display: inline-block;
    width: 100%;
}

.shimmer-block::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0) 100%);
    animation: card-shimmer 1.6s infinite;
    content: '';
}

@keyframes card-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.shimmer-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tikit-title-cell:hover {
    color: #696cff;
}
        
.custom-tooltip .tooltip-inner {
    background-color: #233446;
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 320px;   
    text-align: left;
    white-space: normal;
}
.custom-tooltip .tooltip-arrow::before {
    border-top-color: #233446;
}
    
.sla-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
}

.sla-badge.active{
    background:#EFF6FF;
    color:#2563EB;
}

.sla-badge.warning{
    background:#FFF7ED;
    color:#EA580C;
}

.sla-badge.danger{
    background:#FEF2F2;
    color:#DC2626;

    animation:pulse 1.5s infinite;
}

.sla-badge.overdue{
    background:#FFF1F2;
    color:#BE123C;
}

.sla-badge.resolved{
    background:#ECFDF5;
    color:#15803D;
}

.sla-badge.no-sla{
    background:#F8FAFC;
    color:#64748B;
}

@keyframes pulse{

    0%{
        opacity:1;
    }

    50%{
        opacity:.65;
    }

    100%{
        opacity:1;
    }
}

.priority-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
}

.ticket-id {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.ticket-id:hover {
    text-decoration: underline;
}

/* Filter Drawer Css */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(3px);
    display: none;
    z-index: 1000;
}

.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    padding: 20px;
    overflow-y: auto; 
}

.drawer.active {
    right: 0;
}

.overlay.active {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-item {
    display: flex;
    align-items: center; 
    margin-bottom: 12px;
    gap: 10px; 
}

.filter-item label {
    flex: 0 0 120px;
    margin-bottom: 0; 
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
    text-align: left;
}

.filter-item select, 
.filter-item input {
    flex: 1; 
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 13px;
    height: 35px;
    min-width: 180px;
}

.filter-item select:focus, 
.filter-item input:focus {
    border-color: var(--primary);
}

/* Responsive adjustments for Mobile/Tablets */
/* 1. Stat Cards logic for mobile */
@media (max-width: 576px) {
    .stat-container {
        gap: 10px;
    }
    .stat-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 5px;
    }
    .stat-val {
        font-size: 14px !important;
    }
    .stat-label {
        font-size: 11px;
    }
    .table td, .table th {
        font-size: 0.85rem;
        padding: 6px 5px !important;
    }
}

/* 2. Table optimization */
.table-box {
    border-radius: 12px;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
}

/* Title and ID columns visibility */
.ticket-id {
    font-weight: bold;
    color: var(--primary-color);
}

/* 3. Drawer (Filter) responsiveness */
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 1050;
    transition: 0.3s;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

@media (max-width: 450px) {
    .drawer {
        width: 100%;
    }
}

.edit-icon {
    padding: 5px 10px;
}
    
@media (max-width: 768px) {
    .container-fluid .btn-group.shadow-sm{
        width: 100%;
    }

    .btn-group .btn {
        flex: 1;
        font-size: 12px;
        padding: 8px 5px;
    }
    /* .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    } */
    .card-header .btn-group.btn-group-sm{
        display: inline-block;
    }   
}

/* alert box css */
/* .alert{
    position: absolute;
    top: 70px;
    right: 20px;
    z-index: 1111 !important;
} */

.custom-alert {
    position: fixed;
    top: 80px;
    right: 25px;
    z-index: 1111 !important;
}   
/* To do List Css */
.option-builder-container {
    background: #fdfdfd;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.todo-list-ui {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

.todo-list-ui li {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.todo-list-ui li:hover {
    border-color: #008489;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.opt-number {
    font-weight: 600;
    color: #008489;
    margin-right: 10px;
}

.opt-text-input {
    border: none;
    outline: none;
    width: 100%;
    color: #444;
}

.completed .opt-text-input{
    text-decoration:line-through;
    color:#94A3B8;
}

.completed{
    background:#F8FAFC;
    opacity:.8;
}

.remove-opt {
    color: #ff4d4d;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.6;
}

.remove-opt:hover {
    opacity: 1;
}

.add-option-input-group {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    color: #888;
}

#new_option_text {
    margin-left: 10px;
    font-size: 14px;
}

/* Container Background */
#commentList {
    background-color: #fcfcfc;
    padding-left: 20px;
}

/* Common Line Logic */
.activity-item, .comment-item {
    position: relative;
}

/* Vertical Connecting Line */
.activity-icon-line, .comment-avatar-line {
    position: relative;
    width: 40px;
    flex-shrink: 0;
}

.activity-icon-line::after, .comment-avatar-line::after {
    content: '';
    position: absolute;
    top: 30px;
    bottom: -30px;
    left: 50%;
    width: 2px;
    background: #e9ecef;
    z-index: 1;
}

/* Icon & Avatar Styles */
.icon-wrapper {
    width: 28px;
    height: 28px;
    background: #eef2ff;
    color: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: relative;
    z-index: 2;
    border: 2px solid #fff;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    position: relative;
    z-index: 2;
    border: 2px solid #fff;
}

/* Content Cards */
.activity-content-card, .comment-bubble-card {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    border: 1px solid #f0f0f0;
}

.activity-content-card {
    background: #f8faff;
    border-left: 4px solid #6366f1;
}

.comment-bubble-card {
    border-left: 4px solid #ffc107;
}

.user-label { 
    font-size: 12px; 
    color: #333; 
}
.time-label {
    font-size: 10px; 
    color: #999; 
}
.activity-text { 
    font-size: 13px; 
    color: #555; 
    line-height: 1.4; 
}
.comment-text { 
    font-size: 13px; 
    color: #222; 
    line-height: 1.5; 
}
.activity-item:last-child .activity-icon-line::after, 
.comment-item:last-child .comment-avatar-line::after {
    display: none;
}

/* --- Global & Board Wrapper --- */
.board-wrapper { 
    flex: 1;
    overflow-x: auto;
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
    background-color: #f4f5f7; /* Standard Trello Background */
}

/* --- List Container Design --- */
.list-container {
    background: #ebecf0;
    width: 280px;
    min-width: 280px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    max-height: 77vh;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: width 0.3s, transform 0.2s;
}

.list-container.collapsed { 
    width: 45px !important;
    min-width: 45px !important;
    height: 300px;
    overflow: hidden;
}

.list-header {
    padding: 12px 15px; 
    font-size: 13px; 
    font-weight: 700; 
    border-radius: 10px 10px 0 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    text-transform: uppercase;
}

.collapsed .list-header { 
    writing-mode: vertical-lr; 
    height: 100%; 
    padding: 15px 10px; 
    justify-content: flex-start; 
    gap: 10px; 
}

/* --- Column Background Colors (As per your Image) --- */
.bg-open-ticket { 
    background-color: #FFEDE6; /* Light Peach */
    color: #AF4E2D; 
    border-bottom: 3px solid #FFAB91; 
}
.bg-under-testing { 
    background-color: #FFF4E5; /* Soft Orange */
    color: #B0721E; 
    border-bottom: 3px solid #FFCC80;
}
.bg-resolved { 
    background-color: #E7F9ED; /* Mint Green */
    color: #1E7E34; 
    border-bottom: 3px solid #A5D6A7;
}
.bg-work-created { 
    background-color: #F1F2F4; /* Light Grey */
    color: #44546F; 
    border-bottom: 3px solid #D1D4D9;
}

.cards-area { 
    padding: 10px; 
    overflow-y: auto; 
    flex-grow: 1; 
    min-height: 50px; 
}
.collapsed .cards-area, .collapsed .add-btn { display: none; }

.cards-area .trello-card:last-child{
    margin: 0px !important;
}
/* --- Card Design (Image Style) --- */
.trello-card {
    background: #ffffff; 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 12px; 
    font-size: 13px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); 
    cursor: pointer; 
    border: 1px solid transparent; 
    position: relative;
    color: #172b4d;
    transition: all 0.2s ease;
}

.trello-card:hover { 
    border-color: #0052cc; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.high { background: #eb5a46; } /* Red strip */
.medium { background: #f2d600; } /* Yellow strip */
.low { background: #61bd4f; } /* Green strip */

.card-id { 
    color: #5e6c84; 
    font-size: 12px; 
    margin-bottom: 5px; 
}

.trello-card b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #172b4d;
    margin-bottom: 3px;
}

.card-task-no {
    font-size: 13px;
    color: #444;
    margin-bottom: 8px;
}

.card-desc { 
    color: #5e6c84; 
    margin-top: 5px; 
    line-height: 1.5; 
}

/* Palette Icon Positioning */
.palette-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    color: #172b4d;
    opacity: 0.5;
}

/* --- Color Picker Popover --- */
.popover {
    display: none; 
    position: absolute; 
    top: 40px; 
    right: 10px; 
    background: #ffffff; 
    width: 230px; 
    border-radius: 8px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); 
    z-index: 100; 
    padding: 10px; 
    border: 1px solid #dfe1e6;
}
.fa-edit:hover {
    transform: scale(1.1);
}

.fa-palette:hover {
    color: #ff9f1a !important;
    transform: scale(1.1);
}

.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.color-circle { height: 25px; border-radius: 4px; cursor: pointer; border: 1px solid #eee; }

.sortable-ghost {
    opacity: 0.4;
    border: 2px dashed #0052cc !important;
    background: #e6f4ff !important;
}

.sortable-chosen {
    transform: rotate(3deg); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* --- Add Card Button --- */
.add-btn {
    padding: 12px 15px; 
    cursor: pointer; 
    font-size: 14px; 
    color: #5e6c84; 
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 0 0 10px 10px;
}
.add-btn:hover {
    background-color: rgba(9, 30, 66, 0.08);
    color: #172b4d;
}

/* --- Modal & Form Styles (Static Colors) --- */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 5px; color: #5e6c84; }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; padding: 8px; border: 1px solid #dfe1e6; background: #f4f5f7; color: #172b4d; border-radius: 4px; box-sizing: border-box; 
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-save { background: #0052cc; color: #ffffff; }

.board-wrapper::-webkit-scrollbar,
.cards-area::-webkit-scrollbar {
    width: 8px;               
    height: 8px;              
}

.board-wrapper::-webkit-scrollbar-track,
.cards-area::-webkit-scrollbar-track {
    background: #f1f1f1;   
    border-radius: 10px;  
}

.board-wrapper::-webkit-scrollbar-thumb,
.cards-area::-webkit-scrollbar-thumb {
    background: #ccc;        
    border-radius: 10px;      
    border: 2px solid #f1f1f1; 
}

.board-wrapper::-webkit-scrollbar-thumb:hover,
.cards-area::-webkit-scrollbar-thumb:hover {
    background: #0052cc; 
}

.board-wrapper ,
.cards-area {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

.card-date {
    background: #f4f5f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: #5e6c84;
}

.today-tag {
    background: #e6f4ff;
    color: #0052cc;
}

/* ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
   COMMAND CENTER MEGA MENU
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */

#cmdOverlay {
    --primary:        #4F46E5;
    --primary-ghost:  rgba(79, 70, 229, 0.08);
    --success:        #10B981;
    --warning:        #F59E0B;
    --danger:         #EF4444;
    --bg-surface:     #FFFFFF;
    --bg-surface2:    #F8FAFC;
    --bg-base:        #F1F5F9;
    --border:         #E2E8F0;
    --border-subtle:  #F1F5F9;
    --text-primary:   #0F172A;
    --text-secondary: #475569;
    --text-muted:     #94A3B8;
    --font:           'Plus Jakarta Sans', sans-serif;
    --mono:           'JetBrains Mono', monospace;
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-xl:      18px;
    --transition:     all 0.2s ease;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    font-family: var(--font);
    color: var(--text-primary);
    box-sizing: border-box;
}

/* Dark Mode Overrides */
[data-theme="dark"] #cmdOverlay {
    --bg-surface:     #1E293B;
    --bg-surface2:    #0F172A;
    --bg-base:        #0F172A;
    --border:         #334155;
    --border-subtle:  #1E293B;
    --text-primary:   #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted:     #64748B;
}

/* Open animation class*/
#cmdOverlay.open { 
    display: flex; 
    animation: cmdCenterFadeIn 0.18s ease forwards;
}

/* Scoped Elements Inside Overlay */
#cmdOverlay * {
    box-sizing: border-box;
}

#cmdOverlay #cmdModal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 740px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
    animation: cmdCenterSlideDown 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#cmdOverlay .cmd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

#cmdOverlay .cmd-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 14px;
}

#cmdOverlay .cmd-search-wrap i { 
    color: var(--text-muted); 
    font-size: 15px; 
}

#cmdOverlay #cmdSearch {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-primary);
    width: 100%;
}

#cmdOverlay #cmdSearch::placeholder { 
    color: var(--text-muted); 
}

#cmdOverlay .cmd-esc {
    font-size: 11.5px;
    color: var(--text-muted);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    font-family: var(--mono);
    cursor: pointer;
    flex-shrink: 0;
}

#cmdOverlay .cmd-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: var(--bg-surface);
}

#cmdOverlay .cmd-col {
    padding: 18px 16px;
    border-right: 1px solid var(--border);
}

#cmdOverlay .cmd-col:last-child { 
    border-right: none; 
}

#cmdOverlay .cmd-col-title {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

#cmdOverlay .cmd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 2px;
}

#cmdOverlay .cmd-item:hover {
    background: var(--primary-ghost);
    color: var(--primary);
}

#cmdOverlay .cmd-item.active-route {
    background: var(--primary-ghost);
    color: var(--primary);
}

#cmdOverlay .cmd-icon {
    width: 34px; 
    height: 34px;
    border-radius: var(--radius-md);
    background: var(--bg-base);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--text-secondary);
}

#cmdOverlay .cmd-item:hover .cmd-icon { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
}

#cmdOverlay .cmd-item-label {
    font-size: 13.5px;
    font-weight: 600;
}

#cmdOverlay .cmd-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

#cmdOverlay .cmd-shortcut {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--text-muted);
    background: var(--bg-base);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--mono);
    flex-shrink: 0;
}

/* Theme Toggle Row */
#cmdOverlay .theme-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    border-radius: var(--radius-md);
    background: var(--bg-base);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

#cmdOverlay .theme-toggle-row:hover { 
    border-color: var(--primary); 
}

#cmdOverlay .theme-label { 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--text-primary); 
}

/* Toggle Switch Custom Customization */
#cmdOverlay .toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

#cmdOverlay .toggle-switch input { 
    opacity: 0; width: 0; height: 0; 
}

#cmdOverlay .toggle-track {
    position: absolute; 
    cursor: pointer; 
    inset: 0;
    background-color: var(--text-muted); 
    transition: .2s; 
    border-radius: 20px;
}

#cmdOverlay .toggle-thumb {
    position: absolute; 
    content: ""; 
    height: 14px; 
    width: 14px;
    left: 3px; 
    bottom: 3px; 
    background-color: white; 
    transition: .2s;
    border-radius: 50%;
}

#cmdOverlay .toggle-switch input:checked + .toggle-track { 
    background-color: var(--primary); 
}

#cmdOverlay .toggle-switch input:checked + .toggle-track .toggle-thumb { 
    transform: translateX(16px); 
}

/* Status Dashboard Rules */
#cmdOverlay .status-options { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    margin-top: 8px; 
}

#cmdOverlay .status-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-base);
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

#cmdOverlay .status-option:hover { 
    border-color: var(--primary); 
    background: var(--primary-ghost); 
}

#cmdOverlay .status-option.active { 
    border-color: var(--primary); 
    background: var(--primary-ghost); 
}

#cmdOverlay .status-dot-opt { 
    width: 9px; 
    height: 9px; 
    border-radius: 50%; 
    flex-shrink: 0; 
}

/* Footer Control Row */
#cmdOverlay .cmd-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface2);
}

#cmdOverlay .cmd-foot-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-muted);
}

#cmdOverlay .cmd-foot-item kbd {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-primary);
    display: inline-block;
}

/* Scoped Animations */
@keyframes cmdCenterFadeIn { 
    from { opacity:0; } 
    to { opacity:1; } 
}

@keyframes cmdCenterSlideDown { 
    from { opacity:0; transform: translateY(-16px) scale(0.97); } 
    to { opacity:1; transform: translateY(0) scale(1); } 
}

/* Responsiveness Rules Scoped */
@media (max-width: 768px) {
    #cmdOverlay .cmd-body { grid-template-columns: 1fr; }
    #cmdOverlay .cmd-col { border-right: none; border-bottom: 1px solid var(--border); }
    #cmdOverlay .cmd-col:last-child { border-bottom: none; }
}