:root {
    --accent: #f4a809;
    --theme-clr: #1e293b;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.page-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── Table ── */
.bug-table th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb !important;
    border-top: none !important;
    padding: 12px 16px;
    white-space: nowrap;
}

.bug-table td {
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle;
    color: #374151;
    padding: 12px 16px;
    font-size: 13px;
}

.bug-table tbody tr:hover {
    background: #fafafa;
}

.bug-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── Priority badges ── */
.badge-p {
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.badge-high {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-medium {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-low {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* ── Status badges (task status) ── */
.badge-s {
    display: flex;
    justify-content: center;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    width: 80px;

}

.badge-assigned {
    background: #d4e0fa;
    color: #374151;
    border: 1px solid #95a6c9;
}

.badge-reopened {
    background: #eba2a2;
    color: #9b4444;
     border: 1px solid #ee8383;
}

.badge-verified {
    background: #9dcca5;
    color: #295f32;
    border: 1px solid #71bb7d;
}

.badge-in_progress {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.badge-completed {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-on_hold {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-reassign {
    background: #ebf7ff;
    color:#083f63;
    border: 1px solid #7cc8fc;
}

.badge-escalated {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ── Bug status badges (from bugs table) ── */
.badge-open {
    background: #edf8d1;
    color: #707c2d;
    border: 1px solid #bfdbfe;
}

.badge-closed {
    background: #bbebc9;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ── View button ── */
.btn-view {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s, color 0.15s;
}

.btn-view:hover {
    background: var(--accent);
    color: #111;
}

/* ── DataTable overrides ── */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    color: #111;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 168, 9, 0.12);
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    color: #111;
}

.dataTables_wrapper .dataTables_info {
    font-size: 12px;
    color: #9ca3af;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6 !important;
    color: #111 !important;
    border: none !important;
    border-radius: 6px;
}

.text-over-time {
    color: #dc2626;
    font-weight: 600;
}

/* ── Attachment button in table ── */
.att-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    transition: all 0.15s;
    white-space: nowrap;
}

.att-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111;
}

.att-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #6b7280;
}

.att-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    line-height: 1.4;
}

.att-count-img {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.att-count-vid {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

/* ── Attachment modal overlay ── */
.att-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.att-modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.att-modal-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

/* modal header */
.att-modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.att-modal-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.att-modal-title svg {
    width: 15px;
    height: 15px;
    color: #6b7280;
}

.att-modal-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.att-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.att-modal-close:hover {
    background: #f3f4f6;
    color: #111;
}

/* tab switcher */
.att-tabs {
    display: flex;
    gap: 2px;
    padding: 12px 20px 0;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.att-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px 9px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.att-tab:hover {
    color: #111;
}

.att-tab.active {
    color: #111;
    border-bottom-color: #f4a809;
}

.att-tab svg {
    width: 12px;
    height: 12px;
}

.att-tab .tab-count {
    background: #f3f4f6;
    color: #374151;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
}

.att-tab.active .tab-count {
    background: #f4a809;
    color: #000;
}

/* modal body / grid */
.att-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.att-modal-body::-webkit-scrollbar {
    width: 5px;
}

.att-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.att-modal-body::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 99px;
}

.att-tab-panel {
    display: none;
}

.att-tab-panel.active {
    display: block;
}

/* image grid */
.att-img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.att-img-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.18s;
}

.att-img-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.att-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.att-img-item:hover img {
    transform: scale(1.04);
}

.att-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}

.att-img-item:hover .att-img-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.att-img-overlay svg {
    width: 22px;
    height: 22px;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.18s;
}

.att-img-item:hover .att-img-overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* index badge on image */
.att-img-index {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    font-family: 'Courier New', monospace;
}

/* video grid */
.att-vid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.att-vid-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.att-vid-item video {
    width: 100%;
    display: block;
    border-radius: 0;
}

.att-vid-label {
    padding: 7px 10px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.att-vid-label svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: #7c3aed;
}

/* empty state */
.att-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 13px;
}

.att-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: #d1d5db;
}

/* modal footer */
.att-modal-footer {
    padding: 11px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    font-size: 11px;
    color: #9ca3af;
}

.att-modal-footer strong {
    color: #374151;
}

/* ── Fullscreen lightbox ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-overlay.open {
    display: flex;
    animation: fadeIn 0.18s ease;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 6px 10px;
    transition: all 0.15s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 18px;
    line-height: 1;
    transition: all 0.15s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.lightbox-counter {
    position: absolute;
    bottom: 18px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    font-family: 'Courier New', monospace;
}

 .bug-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
        gap: 12px;
        flex-wrap: wrap;
}


.bug-search {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 6px 12px;
        flex: 1;
        max-width: 340px;
}

.bug-search input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 13px;
        color: #111827;
        width: 100%;
}

.bug-search svg {
        color: #9ca3af;
        flex-shrink: 0;
}
 .add-btn {
        background: #1e293b;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
}

.add-btn:hover {
        opacity: 0.88;
}

.bug-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .bug-table thead th {
        padding: 10px 16px;
        text-align: left;
        font-size: 12px;
        font-weight: 500;
        color: #6b7280;
        background: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
    }

    .bug-table tbody tr {
        border-bottom: 1px solid #f3f4f6;
    }

    .bug-table tbody tr:last-child {
        border-bottom: none;
    }

    .bug-table tbody td {
        padding: 11px 16px;
        color: #111827;
        vertical-align: middle;
    }

    .bug-table tbody tr.hidden {
        display: none;
    }
 .assign-chip {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .avatar {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 500;
        flex-shrink: 0;
    }

    .av-0 {
        background: #dbeafe;
        color: #1e40af;
    }

    .av-1 {
        background: #ede9fe;
        color: #6d28d9;
    }

    .av-2 {
        background: #d1fae5;
        color: #065f46;
    }

    .av-3 {
        background: #fef3c7;
        color: #92400e;
    }

    .chip-name {
        font-size: 12px;
        color: #6b7280;
    }
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;

}

.pagination li a,
.pagination li span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #1e293b;
}

.active>.page-link, .page-link.active{
    z-index: 3;
    color: white;
    background-color: #1e293b;
    border-color: white;
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* filter button styles */

#bugFilterRow {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bug-filter-ctrl {
    padding: 7px 10px;
    border: 1px solid var(--border-color, #e5e7ef);
    border-radius: 7px;
    font-size: 13px;
    color: var(--text-primary, #1a1f2e);
    background: var(--bg-card, #fff);
    outline: none;
    cursor: pointer;
    height: 34px;
}
.bug-filter-ctrl:focus {
    border-color: var(--primary, #1e293b);
}

.bug-btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border-color, #e5e7ef);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    font-size: 13px;
    color: var(--text-primary, #1a1f2e);
    cursor: pointer;
    height: 34px;
    margin-bottom: 10px;
}
.bug-btn-filter:hover {
    background: var(--bg-subtle, #f3f4f8);
}
.bug-filter-count {
    background: var(--primary, #1e293b);
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
}

.bug-btn-generate {
    padding: 7px 16px;
    background: var(--primary, #1e293b);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
    height: 34px;
    white-space: nowrap;
}
.bug-btn-generate:hover { opacity: 0.9; }

.bug-btn-clear {
    padding: 7px 16px;
    background: none;
    border: 1px solid var(--border-color, #e5e7ef);
    border-radius: 7px;
    font-size: 13px;
    color: var(--text-muted, #888);
    cursor: pointer;
    height: 34px;
    white-space: nowrap;
}
.bug-btn-clear:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}
