@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    --velox-cyan: #38bdf8;
    --velox-dark: #020617;
    --velox-card: rgba(30, 41, 59, 0.4);
    --velox-border: rgba(51, 65, 85, 0.5);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --bg-detail: #0f172a;
}

body {
    background: var(--velox-dark);
    background-image: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent),
                      radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.05), transparent);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    padding: 40px 20px;
    margin: 0;
    min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; }

/* --- Header & Search --- */
.logo-area { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.logo-area img { height: 60px; filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.3)); }
.header-text h2 { margin: 0; font-size: 2rem; font-weight: 800; background: linear-gradient(to bottom right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.filter-section { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; align-items: center; }

.velox-select {
    background: var(--velox-card); border: 1px solid var(--velox-border); color: var(--text-main);
    padding: 12px 40px 12px 20px; border-radius: 12px; font-weight: 600; cursor: pointer;
    appearance: none; backdrop-filter: blur(10px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 18px;
}
.velox-select option { background-color: #1e293b; color: white; }

.table-container { background: var(--velox-card); border: 1px solid var(--velox-border); border-radius: 24px; padding: 25px; backdrop-filter: blur(12px); }

/* --- Detail View (Single Page) --- */
#detail-view { display: none; }

.back-button {
    display: inline-flex; align-items: center; gap: 8px; color: var(--velox-cyan);
    text-decoration: none; font-weight: 600; margin-bottom: 25px; cursor: pointer;
}

.detail-card {
    background: var(--bg-detail); border: 1px solid var(--velox-border);
    border-radius: 16px; padding: 40px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.detail-header h1 { margin: 0; font-size: 2.2rem; font-weight: 700; color: #fff; }
.detail-header p { color: var(--text-dim); margin: 8px 0 40px 0; font-size: 1rem; }

.detail-row { display: flex; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.detail-label { width: 280px; color: var(--text-dim); font-size: 0.95rem; }
.detail-value { flex: 1; color: #fff; word-break: break-all; }

.tag { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; border: 1px solid transparent; }
.tag-dev { background: rgba(110, 185, 212, 0.1); color: #03bafc; border-color: rgba(31, 112, 242, 0.3); }
.tag-testing { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.tag-stable { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
/* Added without changing layout: core/v3/v4 arch tags */
.tag-core { background: rgba(148, 163, 184, 0.10); color: #94a3b8; border-color: rgba(148, 163, 184, 0.25); }
.tag-v3 { background: rgba(56, 189, 248, 0.10); color: #38bdf8; border-color: rgba(56, 189, 248, 0.25); }
.tag-v4 { background: rgba(99, 102, 241, 0.10); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.25); }

/* --- Mirror Modal --- */
#mirrorModal {
    display:none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(10px);
}
.modal-content {
    background: #0f172a; margin: 10% auto; padding: 30px; width: 90%; max-width: 550px;
    border-radius: 24px; position: relative; border: 1px solid var(--velox-border);
}

a.pkg-link { color: var(--velox-cyan); text-decoration: none; font-weight: 600; cursor: pointer; }
.detail-value a { color: var(--velox-cyan); text-decoration: none; }

.dt-search input { background: rgba(15, 23, 42, 0.8) !important; border: 1px solid var(--velox-border) !important; color: white !important; border-radius: 12px !important; padding: 8px 15px !important; margin-bottom: 10px; }

/* --- Added: Reset button next to DataTables search --- */
.dt-search { display: flex; align-items: center; gap: 10px; }
#btnReset {
    background: var(--velox-card);
    border: 1px solid var(--velox-border);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 768px) {
    .detail-row { flex-direction: column; gap: 4px; }
    .detail-label { width: 100%; }
    th:nth-child(4), td:nth-child(4), th:nth-child(5), td:nth-child(5) { display: none; }
}
