/* Admin Gate */
.admin-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.admin-gate__card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.admin-gate__card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.admin-gate__card p {
    color: var(--text-muted, #718096);
    margin-bottom: 1.5rem;
}

.admin-gate__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.admin-gate__input:focus {
    outline: none;
    border-color: var(--primary, #3182ce);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.admin-gate__btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary, #3182ce);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-gate__btn:hover {
    background: var(--primary-dark, #2c5282);
}

.admin-gate__error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Admin Dashboard */
.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-dashboard h1 {
    margin-bottom: 0.5rem;
}

.admin-nav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border, #e2e8f0);
    padding-bottom: 0;
}

.admin-nav__link {
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-muted, #718096);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.admin-nav__link:hover {
    color: var(--text, #2d3748);
}

.admin-nav__link--active {
    color: var(--primary, #3182ce);
    border-bottom-color: var(--primary, #3182ce);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-section {
    margin-bottom: 2.5rem;
}

.admin-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.admin-count {
    color: var(--text-muted, #718096);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.admin-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #e2e8f0);
}

.admin-success {
    color: #38a169;
    font-size: 0.875rem;
    margin-left: 1rem;
}

.source-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.source-web { background: #ebf8ff; color: #2b6cb0; }
.source-sample { background: #f0fff4; color: #276749; }
.source-human { background: #fefcbf; color: #975a16; }

.url-cell {
    text-align: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn--secondary {
    background: var(--surface, #edf2f7);
    color: var(--text, #2d3748);
}

.btn--secondary:hover {
    background: #e2e8f0;
}
