/* Reset WP top margin for full-height feel */
#wpcontent { padding-left: 0 !important; }

.lc-wrap {
    display: flex;
    min-height: calc(100vh - 32px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Left sidebar ---- */
.lc-sidebar {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.lc-logo svg {
    flex-shrink: 0;
}

.lc-logo-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.lc-version {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 28px 0;
    padding-left: 2px;
}

.lc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lc-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 15px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}

.lc-nav a:hover {
    background: #f3f4f6;
    color: #111827;
}

.lc-nav a svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* ---- Main area ---- */
.lc-main {
    flex: 1;
    background: #f0f0f1;
    padding: 32px 32px 48px;
}

.lc-main h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.3;
}

.lc-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px;
}

/* ---- Cards ---- */
.lc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    max-width: 600px;
}

/* Toggle row */
.lc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lc-toggle-label strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.lc-toggle-label span {
    font-size: 15px;
    color: #6b7280;
}

/* Toggle switch */
.lc-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.lc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 26px;
    transition: background 0.2s;
}

.lc-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lc-switch input:checked + .lc-slider {
    background: #2563eb;
}

.lc-switch input:checked + .lc-slider:before {
    transform: translateX(22px);
}

/* Widget ID card */
.lc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 15px;
    color: #0369a1;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.lc-status-badge.disabled {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.lc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.lc-dot.disabled {
    background: #ef4444;
}

.lc-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.lc-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.lc-hint {
    font-size: 14px;
    color: #9ca3af;
    margin: 6px 0 16px;
}

.lc-hint strong {
    color: #6b7280;
}

.lc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.lc-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.lc-saved {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: #16a34a;
    margin-left: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.lc-saved.show {
    opacity: 1;
}
