/* Dark hacker/terminal theme, matching Rose/System's look on the main
   site. Layers on top of admin.css. */
:root {
    --primary: #38ffb0;
}

html,
body {
    background: #060a08 !important;
    overflow-x: hidden;
}

#matrix-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0px,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 255, 120, 0.03) 3px,
            rgba(0, 0, 0, 0) 4px);
}

.sidebar {
    position: relative;
    z-index: 2;
    background: rgba(6, 14, 10, 0.92) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-right: 1px solid rgba(0, 255, 140, 0.25);
    box-shadow: 4px 0 25px rgba(0, 255, 140, 0.08);
}

.main-content {
    position: relative;
    z-index: 2;
    background: transparent !important;
    color: #baffdd;
}

.brand {
    color: #38ffb0 !important;
    text-shadow: 0 0 10px rgba(56, 255, 176, 0.5);
    border-bottom: 1px solid rgba(0, 255, 140, 0.2) !important;
    font-family: 'Courier New', monospace;
}

.nav-item {
    font-family: 'Courier New', monospace;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(56, 255, 176, 0.12) !important;
    color: #38ffb0 !important;
    box-shadow: inset 3px 0 0 #38ffb0;
}

.user-info {
    border-bottom: 1px solid rgba(0, 255, 140, 0.15) !important;
}

.page-title {
    color: #38ffb0 !important;
    text-shadow: 0 0 8px rgba(56, 255, 176, 0.4);
    font-family: 'Courier New', monospace;
}

.panel,
.stat-card,
.chart-card,
.site-card {
    background: rgba(9, 20, 14, 0.85) !important;
    border: 1px solid rgba(0, 255, 140, 0.18) !important;
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.06) !important;
    color: #baffdd;
}

.stat-info h3,
.chart-card-head,
.chart-sub {
    color: #baffdd !important;
}

.stat-info p {
    color: #7fdcb0 !important;
}

.table-responsive,
table,
.data-table {
    background: transparent !important;
    color: #baffdd;
}

th {
    background: rgba(0, 255, 140, 0.06) !important;
    color: #7fdcb0 !important;
    border-bottom: 2px solid rgba(0, 255, 140, 0.2) !important;
    font-family: 'Courier New', monospace;
}

td {
    border-bottom: 1px solid rgba(0, 255, 140, 0.08) !important;
    color: #baffdd !important;
}

tr:hover td {
    background: rgba(56, 255, 176, 0.05) !important;
}

.form-group label {
    color: #7fdcb0 !important;
    font-family: 'Courier New', monospace;
}

.edit-block {
    background: rgba(9, 20, 14, 0.85) !important;
    border: 1px solid rgba(0, 255, 140, 0.18) !important;
}

.input-field,
input,
select,
textarea {
    background: rgba(0, 20, 12, 0.7) !important;
    border: 1px solid rgba(0, 255, 140, 0.3) !important;
    color: #baffdd !important;
    font-family: 'Courier New', monospace;
}

.input-field:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #38ffb0 !important;
    box-shadow: 0 0 10px rgba(56, 255, 176, 0.35) !important;
}

.action-btn {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn-dark {
    background: rgba(0, 20, 12, 0.8) !important;
    border: 1px solid rgba(0, 255, 140, 0.25);
}

.owner-badge {
    display: inline-block;
    background: #0f7a4f;
    color: #eafff5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 9px;
    border-radius: 20px;
    margin-left: 8px;
    box-shadow: 0 0 10px rgba(56, 255, 176, 0.3);
}

/* --- WHM-specific additions (not present on the main site) --- */

.site-card {
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(0, 255, 140, 0.25);
    background: rgba(0, 20, 12, 0.6);
    flex-shrink: 0;
}

.site-card-id {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #7fdcb0;
    background: rgba(56, 255, 176, 0.1);
    border: 1px solid rgba(0, 255, 140, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.site-card-name {
    font-weight: 600;
    color: #baffdd;
    font-size: 15px;
}

.site-card-meta {
    font-size: 12px;
    color: #7fdcb0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.site-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.site-card-actions .action-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.sub-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.sub-badge.active {
    background: rgba(0, 200, 81, 0.15);
    color: #4be08a;
    border: 1px solid rgba(0, 200, 81, 0.4);
}

.sub-badge.inactive {
    background: rgba(255, 68, 68, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 68, 68, 0.4);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.toolbar .input-field {
    max-width: 260px;
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #7fdcb0;
}

.step-indicator .step.active {
    color: #38ffb0;
    font-weight: 700;
}

.detect-toggle {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.detect-toggle button {
    flex: 1;
    padding: 6px;
    font-size: 11px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 140, 0.3);
    background: rgba(0, 20, 12, 0.5);
    color: #7fdcb0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.detect-toggle button.active {
    background: rgba(56, 255, 176, 0.18);
    color: #38ffb0;
    border-color: #38ffb0;
}
