/* MANTIS Malware Repository - Premium Dark UI */

.mwdb-pane {
    padding: 24px 32px;
    height: 100%;
    overflow-y: auto;
    color: #e2e8f0;
    background: transparent;
}

.mwdb-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Hero Header */
.mwdb-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(10, 15, 29, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.mwdb-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: 15%;
    width: 200px;
    height: 100px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.mwdb-hero-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mwdb-hero-icon {
    font-size: 1.8rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.mwdb-hero-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #f8fafc;
}

.mwdb-hero-text p {
    margin: 0;
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.4;
}

.mwdb-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mwdb-btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
}

.mwdb-btn-primary-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.mwdb-btn-icon-hero {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mwdb-btn-icon-hero:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Stats Row */
.mwdb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mwdb-stat-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s;
}

.mwdb-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.mwdb-stat-icon {
    font-size: 1.25rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.18);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mwdb-stat-info {
    display: flex;
    flex-direction: column;
}

.mwdb-stat-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.mwdb-stat-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 2px;
}

/* Search & Filter Toolbar */
.mwdb-toolbar {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mwdb-search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mwdb-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.mwdb-search-input-wrap i {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.9rem;
}

.mwdb-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s;
}

.mwdb-search-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.18);
    background: rgba(0, 0, 0, 0.45);
}

.mwdb-filter-select {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.85rem;
    outline: none;
    min-width: 190px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.mwdb-filter-select:focus {
    border-color: #f59e0b;
}

/* Tag Pills Row */
.mwdb-tags-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding-top: 2px;
}

.mwdb-tags-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mwdb-tag-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.mwdb-tag-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.mwdb-tag-pill.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
    color: #fde68a;
    font-weight: 500;
}

/* Samples Table */
.mwdb-table-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.mwdb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.mwdb-table th {
    background: rgba(0, 0, 0, 0.35);
    padding: 12px 18px;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mwdb-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.mwdb-table tr:last-child td {
    border-bottom: none;
}

.mwdb-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.mwdb-file-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mwdb-filename {
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
}

.mwdb-filename i {
    color: #f59e0b;
    font-size: 0.88rem;
}

.mwdb-file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

.mwdb-hash-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mwdb-hash-top {
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
}

.mwdb-hash-sub {
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    color: #64748b;
}

.mwdb-copy-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: color 0.15s;
}

.mwdb-copy-btn:hover {
    color: #fff;
}

/* Badges */
.mwdb-badge-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.mwdb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 500;
}

.mwdb-badge-actor {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.mwdb-badge-family {
    background: rgba(245, 158, 11, 0.12);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.mwdb-unassigned {
    font-size: 0.76rem;
    color: #475569;
    font-style: italic;
}

/* Table Action Buttons */
.mwdb-actions-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mwdb-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.mwdb-action-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.mwdb-act-dl {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(52, 211, 153, 0.06);
}
.mwdb-act-dl:hover {
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

.mwdb-act-lab {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.06);
}
.mwdb-act-lab:hover {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.mwdb-act-del:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}

/* Empty State */
.mwdb-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
}

.mwdb-empty-state i {
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

/* Modals */
.mwdb-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.mwdb-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    width: 580px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.mwdb-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mwdb-modal-head h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mwdb-modal-head h4 i {
    color: #f59e0b;
}

.mwdb-modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}
.mwdb-modal-close:hover { color: #fff; }

.mwdb-modal-body {
    padding: 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mwdb-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.2s;
}

.mwdb-dropzone:hover,
.mwdb-dropzone.drag-active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.04);
}

.mwdb-dropzone i {
    font-size: 2rem;
    color: #f59e0b;
    margin-bottom: 8px;
}

.mwdb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mwdb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mwdb-form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
}

.mwdb-form-input,
.mwdb-form-textarea {
    width: 100%;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f8fafc;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.2s;
}

.mwdb-form-input:focus,
.mwdb-form-textarea:focus {
    border-color: #f59e0b;
}

.mwdb-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 900px) {
    .mwdb-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mwdb-form-row {
        grid-template-columns: 1fr;
    }
    .mwdb-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
