/* ==========================================================================
   LoginCraft — Overview Page CSS
   ========================================================================== */

:root {
    --lpcd-ov-primary: #330066;
    --lpcd-ov-primary-hover: #220044;
    --lpcd-ov-primary-light: rgba(51, 0, 102, 0.08);
    --lpcd-ov-primary-20: rgba(51, 0, 102, 0.15);
    --lpcd-ov-text: #1e293b;
    --lpcd-ov-text-600: #475569;
    --lpcd-ov-text-500: #64748b;
    --lpcd-ov-text-400: #94a3b8;
    --lpcd-ov-border: #e2e8f0;
    --lpcd-ov-bg: #f8fafc;
    --lpcd-ov-card: #ffffff;
    --lpcd-ov-radius: 12px;
    --lpcd-ov-radius-sm: 8px;
    --lpcd-ov-font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Wrapper ── */
.lpcd-overview-wrap {
    font-family: var(--lpcd-ov-font);
    color: var(--lpcd-ov-text);
    background: var(--lpcd-ov-bg);
    margin-left: -20px;
    margin-top: -6px;
    padding: 0;
    min-height: calc(100vh - 32px);
}

.lpcd-overview-wrap *,
.lpcd-overview-wrap *::before,
.lpcd-overview-wrap *::after {
    box-sizing: border-box;
}

/* ── Header ── */
.lpcd-ov-header {
    position: sticky;
    top: 32px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lpcd-ov-border);
    padding: 0 24px;
}

.lpcd-ov-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.lpcd-ov-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lpcd-ov-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #330066, #5170ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.lpcd-ov-brand-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.lpcd-ov-brand h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0;
    padding: 0;
    color: var(--lpcd-ov-text);
}

.lpcd-ov-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lpcd-ov-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--lpcd-ov-primary-light);
    color: var(--lpcd-ov-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Main layout ── */
.lpcd-ov-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.lpcd-ov-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.lpcd-ov-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.lpcd-ov-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Welcome banner ── */
.lpcd-ov-welcome {
    position: relative;
    overflow: hidden;
    border-radius: var(--lpcd-ov-radius);
    background: linear-gradient(135deg, #1a0033 0%, #330066 40%, #4a0e8f 70%, #5c1aad 100%);
    border: none;
    padding: 40px 32px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.lpcd-ov-welcome::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.lpcd-ov-welcome-inner {
    position: relative;
    z-index: 1;
}

.lpcd-ov-welcome h2 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.lpcd-ov-welcome p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

/* ── Section titles ── */
.lpcd-ov-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--lpcd-ov-text);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpcd-ov-section-title .dashicons {
    color: var(--lpcd-ov-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ── Step cards ── */
.lpcd-ov-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lpcd-ov-step {
    background: var(--lpcd-ov-card);
    border: 1px solid var(--lpcd-ov-border);
    border-radius: var(--lpcd-ov-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.lpcd-ov-step:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.lpcd-ov-step-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.lpcd-ov-step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--lpcd-ov-radius-sm);
    background: var(--lpcd-ov-primary-light);
    color: var(--lpcd-ov-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lpcd-ov-step-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.lpcd-ov-step-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--lpcd-ov-text);
    margin: 0 0 2px;
}

.lpcd-ov-step-text p {
    font-size: 13px;
    color: var(--lpcd-ov-text-500);
    margin: 0;
}

/* Step actions */
.lpcd-ov-btn-text {
    background: none;
    border: none;
    color: var(--lpcd-ov-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--lpcd-ov-radius-sm);
    font-family: var(--lpcd-ov-font);
    transition: background 0.2s;
    white-space: nowrap;
}

.lpcd-ov-btn-text:hover {
    background: var(--lpcd-ov-primary-light);
}

.lpcd-ov-btn-dark {
    background: var(--lpcd-ov-text);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--lpcd-ov-radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--lpcd-ov-font);
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.lpcd-ov-btn-dark:hover {
    background: #334155;
    color: #fff;
}

/* Toggle switch */
.lpcd-ov-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lpcd-ov-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lpcd-ov-toggle-track {
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    position: relative;
    transition: background 0.25s;
}

.lpcd-ov-toggle-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lpcd-ov-toggle input:checked+.lpcd-ov-toggle-track {
    background: linear-gradient(135deg, #330066, #5170ff);
}

.lpcd-ov-toggle input:checked+.lpcd-ov-toggle-track::after {
    transform: translateX(20px);
}

/* ── Pro CTA banner ── */
.lpcd-ov-pro-cta {
    background: #0f172a;
    color: #fff;
    border-radius: var(--lpcd-ov-radius);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.lpcd-ov-pro-cta::before {
    content: "🚀";
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 96px;
    opacity: 0.06;
    pointer-events: none;
}

.lpcd-ov-pro-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
}

.lpcd-ov-pro-info {
    flex: 1;
}

.lpcd-ov-pro-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
}

.lpcd-ov-pro-info>p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0 0 20px;
}

.lpcd-ov-pro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lpcd-ov-pro-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ffffff;
}

.lpcd-ov-pro-feature .dashicons {
    color: var(--lpcd-ov-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lpcd-ov-btn-primary {
    background: linear-gradient(135deg, #330066, #5170ff);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--lpcd-ov-radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: var(--lpcd-ov-font);
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.lpcd-ov-btn-primary:hover {
    background: linear-gradient(135deg, #220044, #3d5ce6);
    color: #fff;
}

.lpcd-ov-btn-primary:active {
    transform: scale(0.97);
}

/* ── Sidebar cards ── */
.lpcd-ov-card {
    background: var(--lpcd-ov-card);
    border: 1px solid var(--lpcd-ov-border);
    border-radius: var(--lpcd-ov-radius);
    overflow: hidden;
}

.lpcd-ov-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpcd-ov-card-header--gradient {
    background: linear-gradient(135deg, #1a0033, #330066);
    border-bottom: none;
}

.lpcd-ov-card-header--gradient h4 {
    color: #ffffff;
}

.lpcd-ov-card-header--gradient .dashicons {
    color: rgba(255, 255, 255, 0.85);
}

.lpcd-ov-card-header h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--lpcd-ov-text);
}

.lpcd-ov-card-header .dashicons {
    color: var(--lpcd-ov-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.lpcd-ov-card-body {
    padding: 16px 20px;
}

/* Plugin row */
.lpcd-ov-plugin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.lpcd-ov-plugin-row+.lpcd-ov-plugin-row {
    border-top: 1px solid #f1f5f9;
}

.lpcd-ov-plugin-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--lpcd-ov-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lpcd-ov-plugin-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.lpcd-ov-plugin-icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.lpcd-ov-plugin-icon--green {
    background: #dcfce7;
    color: #16a34a;
}

.lpcd-ov-plugin-icon--purple {
    background: #f3e8ff;
    color: #9333ea;
}

.lpcd-ov-plugin-meta {
    flex: 1;
    min-width: 0;
}

.lpcd-ov-plugin-meta strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lpcd-ov-text);
}

.lpcd-ov-plugin-meta span {
    font-size: 12px;
    color: var(--lpcd-ov-text-500);
}

.lpcd-ov-plugin-row .lpcd-ov-btn-text {
    padding: 4px 8px;
    font-size: 12px;
}

.lpcd-ov-plugin-row .lpcd-ov-btn-text.lpcd-ov-btn-active {
    color: #16a34a;
    cursor: default;
    opacity: 0.8;
}

.lpcd-ov-plugin-row .lpcd-ov-btn-text:disabled {
    cursor: default;
    opacity: 0.7;
}

.lpcd-ov-card-footer {
    padding: 12px 20px;
    background: #f8fafc;
    text-align: center;
}

.lpcd-ov-card-footer a {
    font-size: 12px;
    font-weight: 500;
    color: var(--lpcd-ov-text-500);
    text-decoration: none;
    transition: color 0.2s;
}

.lpcd-ov-card-footer a:hover {
    color: var(--lpcd-ov-primary);
}

/* Help links */
.lpcd-ov-help-links {
    padding: 8px 12px;
}

.lpcd-ov-help-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--lpcd-ov-radius-sm);
    text-decoration: none;
    color: var(--lpcd-ov-text);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.lpcd-ov-help-link:hover {
    background: #f1f5f9;
    color: var(--lpcd-ov-primary);
}

.lpcd-ov-help-link .dashicons {
    color: var(--lpcd-ov-text-400);
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: color 0.15s;
}

.lpcd-ov-help-link:hover .dashicons {
    color: var(--lpcd-ov-primary);
}

/* Status card */
.lpcd-ov-status {
    background: var(--lpcd-ov-primary-light);
    border: 2px dashed var(--lpcd-ov-primary-20);
    border-radius: var(--lpcd-ov-radius);
    padding: 24px;
}

.lpcd-ov-status-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--lpcd-ov-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px;
}

.lpcd-ov-status-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lpcd-ov-text);
}

.lpcd-ov-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: lpcd-ov-pulse 2s ease-in-out infinite;
}

.lpcd-ov-status-dot--inactive {
    background: #94a3b8;
    animation: none;
}

@keyframes lpcd-ov-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.lpcd-ov-status p {
    font-size: 12px;
    color: var(--lpcd-ov-text-500);
    margin: 12px 0 0;
    line-height: 1.6;
}

/* ── Footer ── */
.lpcd-ov-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 32px;
    border-top: 1px solid var(--lpcd-ov-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.lpcd-ov-footer p {
    font-size: 13px;
    color: var(--lpcd-ov-text-500);
    margin: 0;
}

.lpcd-ov-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lpcd-ov-footer-links a {
    font-size: 12px;
    font-weight: 500;
    color: var(--lpcd-ov-text-500);
    text-decoration: none;
    transition: color 0.2s;
}

.lpcd-ov-footer-links a:hover {
    color: var(--lpcd-ov-primary);
}

/* ── Responsive ── */
@media screen and (max-width: 960px) {
    .lpcd-ov-layout {
        flex-direction: column;
    }

    .lpcd-ov-sidebar {
        width: 100%;
    }

    .lpcd-ov-pro-inner {
        flex-direction: column;
        text-align: center;
    }

    .lpcd-ov-pro-features {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media screen and (max-width: 600px) {
    .lpcd-ov-header-inner {
        height: 56px;
    }

    .lpcd-ov-main {
        padding: 20px 16px 32px;
    }

    .lpcd-ov-welcome {
        padding: 28px 20px;
    }

    .lpcd-ov-welcome h2 {
        font-size: 20px;
    }

    .lpcd-ov-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .lpcd-ov-footer {
        flex-direction: column;
        text-align: center;
    }
}