.card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.green { color: var(--green); }
.stat-value.orange { color: var(--orange); }
.stat-value.red { color: var(--red); }

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg { width: 18px; height: 18px; }
.icon-circle.blue { background: var(--blue-light); color: var(--blue); }
.icon-circle.green { background: var(--green-light); color: var(--green); }
.icon-circle.orange { background: var(--orange-light); color: var(--orange); }
.icon-circle.red { background: var(--red-light); color: var(--red); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pill.green { background: var(--green-light); color: #1a7a34; }
.pill.orange { background: var(--orange-light); color: #8a5200; }
.pill.red { background: var(--red-light); color: #c41e16; }
.pill.yellow { background: var(--yellow-light); color: #8a6d00; }
.pill.blue { background: var(--blue-light); color: #0055b3; }
.pill.gray { background: var(--bg-tertiary); color: var(--text-tertiary); }

.pill.pulse { animation: pulse-anim 1.5s ease-in-out infinite; }

@keyframes pulse-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.green { background: var(--green); }
.status-dot.red { background: var(--red); }
.status-dot.orange { background: var(--orange); }
.status-dot.gray { background: var(--text-tertiary); }
.status-dot.blue { background: var(--accent); }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.data-table thead th {
    background: var(--bg-table-header);
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-strong);
}

.data-table thead th .th-icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--text-tertiary); }

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.data-table tbody tr { transition: background 0.1s ease; cursor: pointer; }
.data-table tbody tr:nth-child(even) { background: var(--bg-table-row-alt); }
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

.mono { font-family: var(--font-mono); font-size: 13px; }
.text-right { text-align: right; }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-red { color: var(--red); }
.text-secondary { color: var(--text-secondary); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.btn:hover { border-color: var(--text-tertiary); color: var(--text-primary); }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 13px;
}

.pagination .page-info { color: var(--text-secondary); }
.pagination .page-numbers { display: flex; gap: 4px; }

.pagination .page-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
}

.pagination .page-btn:hover { color: var(--accent); }
.pagination .page-btn.active { background: var(--accent); color: #fff; }
.pagination .page-btn.nav { width: auto; padding: 0 8px; }

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}

.search-input, .filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-input:focus, .filter-select:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-tertiary); }
.filter-bar .search-input { flex: 1; min-width: 200px; }

.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #e0322a; border-color: #e0322a; color: #fff; }

.table-scroll { overflow-x: auto; }
.section-title { font-size: 16px; font-weight: 600; margin: 32px 0 16px; }

.loader-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.loader {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
