/* admin.css — shared shell styles for all admin pages
   Desktop-only: no mobile breakpoints needed.
   Font stack and palette match main.css.
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.admin-page {
    font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: #f0f2f5;
    color: #1f2328;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Shell ───────────────────────────────────────────────────────────────────── */
.admin-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────────────────────────── */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 52px;
    background: #1e1e2e;
    color: #fff;
    flex-shrink: 0;
    gap: 16px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo {
    font-size: 18px;
    line-height: 1;
}

.admin-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.admin-header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.admin-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ── Main content ────────────────────────────────────────────────────────────── */
.admin-main {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
}

.admin-section-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #57606a;
    margin-bottom: 16px;
}

/* ── Tool card grid (admin hub) ──────────────────────────────────────────────── */
.admin-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.admin-tool-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-tool-card:hover {
    border-color: #3b82d4;
    box-shadow: 0 2px 8px rgba(59,130,212,0.12);
}

.admin-tool-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.admin-tool-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2328;
}
.admin-tool-desc {
    font-size: 12px;
    color: #57606a;
    line-height: 1.5;
}

/* ── Shared button styles used across admin pages ────────────────────────────── */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    white-space: nowrap;
}
.admin-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.admin-btn--primary  { background: #3b82d4; color: #fff; }
.admin-btn--primary:hover:not(:disabled)  { background: #2563b0; }

.admin-btn--success  { background: #16a34a; color: #fff; }
.admin-btn--success:hover:not(:disabled)  { background: #15803d; }

.admin-btn--ghost    { background: #f0f2f5; color: #1f2328; border: 1px solid #d1d5db; }
.admin-btn--ghost:hover:not(:disabled)    { background: #e5e7eb; }

.admin-btn--danger   { background: #dc2626; color: #fff; }
.admin-btn--danger:hover:not(:disabled)   { background: #b91c1c; }

/* ── Toast notification ──────────────────────────────────────────────────────── */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
}
.admin-toast.visible {
    opacity: 1;
    transform: translateY(0);
}
.admin-toast--success { background: #16a34a; }
.admin-toast--error   { background: #dc2626; }
.admin-toast--info    { background: #3b82d4; }
