/**
 * WooShield Public Styles
 *
 * Table of Contents:
 * 1. Base Layout & Card
 * 2. Setup & QR Code
 * 3. Form Elements & Inputs
 * 4. Buttons
 * 5. Notices
 * 6. Status Indicators
 * 7. Recovery Codes
 * 8. Login Challenge
 * 9. Trusted Devices
 * 10. My Account Security
 * 11. Security Logs
 * 12. Animations
 * 13. Responsive
 */

/* =============================================================================
   1. Base Layout & Card
   ============================================================================= */

.wooshield-frontend {
    max-width: 560px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wooshield-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wooshield-card-success {
    border-left: 4px solid #00a32a;
}

.wooshield-logo {
    display: block;
    margin: 0 auto 16px;
}

.wooshield-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1d2327;
}

.wooshield-card h3 {
    margin: 24px 0 8px;
    font-size: 16px;
    color: #1d2327;
}

.wooshield-card p {
    color: #646970;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* =============================================================================
   2. Setup & QR Code
   ============================================================================= */

.wooshield-setup-step {
    border-top: 1px solid #dcdcde;
    padding-top: 16px;
    margin-top: 16px;
}

.wooshield-qr-wrapper {
    text-align: center;
    padding: 16px;
    background: #f0f0f1;
    border-radius: 6px;
    margin: 16px 0;
}

.wooshield-qr-code {
    display: inline-block;
    max-width: 200px;
    height: auto;
}

.wooshield-qr-code canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.wooshield-setup-key {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
}

.wooshield-secret-key {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 2px;
    word-break: break-all;
    color: #1d2327;
}

.wooshield-setup-key .description {
    font-size: 12px;
    color: #646970;
    margin-top: 8px;
}

/* =============================================================================
   3. Form Elements & Inputs
   ============================================================================= */

.wooshield-form-row {
    margin-bottom: 16px;
}

.wooshield-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d2327;
}

.wooshield-code-input {
    width: 100%;
    max-width: 220px;
    padding: 10px 14px;
    font-size: 20px;
    letter-spacing: 6px;
    text-align: center;
    border: 2px solid #8c8f94;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.wooshield-code-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* =============================================================================
   4. Buttons
   ============================================================================= */

.wooshield-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.wooshield-btn-primary {
    background: #2271b1;
    color: #fff;
}

.wooshield-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.wooshield-btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
    border: 1px solid #8c8f94;
}

.wooshield-btn-secondary:hover {
    background: #dcdcde;
    color: #1d2327;
}

.wooshield-btn-danger {
    background: #dc3232;
    color: #fff;
}

.wooshield-btn-danger:hover {
    background: #b32d2e;
    color: #fff;
}

.wooshield-btn:disabled,
.wooshield-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.wooshield-btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* =============================================================================
   5. Notices
   ============================================================================= */

.wooshield-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 99999;
    animation: wooshield-slide-up 0.3s ease-out;
}

.wooshield-notice-success {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #005a12;
}

.wooshield-notice-error {
    background: #fcf0f1;
    border: 1px solid #dc3232;
    color: #8a2424;
}

.wooshield-notice-inline {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.wooshield-notice-inline-warning {
    background: #fcf9e8;
    border: 1px solid #f0c36d;
    color: #7a5b00;
}

/* =============================================================================
   6. Status Indicators
   ============================================================================= */

.wooshield-status-enabled {
    color: #00a32a;
    font-weight: 600;
}

.wooshield-status-disabled {
    color: #bd8600;
    font-weight: 600;
}

.wooshield-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}

.wooshield-badge-success {
    background: #edfaef;
    color: #005a12;
}

.wooshield-badge-warning {
    background: #fcf9e8;
    color: #bd8600;
}

/* =============================================================================
   7. Recovery Codes
   ============================================================================= */

.wooshield-recovery-codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.wooshield-recovery-code {
    display: block;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-align: center;
    color: #1d2327;
}

.wooshield-recovery-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wooshield-recovery-hint {
    font-size: 13px;
    color: #646970;
}

.wooshield-recovery-warning {
    color: #bd8600;
    font-weight: 600;
    margin-top: 16px;
}

.wooshield-recovery-generated h3 {
    margin-top: 0;
}

.wooshield-recovery-generated {
    margin-top: 24px;
    padding: 20px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 6px;
}

.wooshield-recovery-manager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.wooshield-recovery-manager-content {
    min-width: 0;
}

.wooshield-recovery-manager-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #646970;
    text-transform: uppercase;
}

.wooshield-recovery-manager-count {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.3;
    color: #1d2327;
}

.wooshield-recovery-manager p {
    margin: 0;
    max-width: 620px;
    color: #646970;
    font-size: 14px;
    line-height: 1.5;
}

.wooshield-recovery-manager-action {
    flex: 0 0 auto;
    margin: 0;
}

.wooshield-recovery-manager-action .wooshield-btn {
    white-space: nowrap;
}

/* =============================================================================
   8. Login Challenge
   ============================================================================= */

/* Soften the WP login page so the card feels premium, not floating on
   bare gray. Scoped to the body.login element so it only affects the
   login screen when our challenge view is in the DOM. */
body.login:has(.wooshield-challenge-wrapper) {
    background:
        radial-gradient(1200px 600px at 0% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% 110%, rgba(236, 72, 153, 0.08), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

body.login:has(.wooshield-challenge-wrapper) #login h1,
body.login:has(.wooshield-challenge-wrapper) #login p.message,
body.login:has(.wooshield-challenge-wrapper) #login #nav,
body.login:has(.wooshield-challenge-wrapper) #login #backtoblog {
    display: none;
}

/* WP's default #login is 320px wide which crops our card. Widen it so the
   challenge card can breathe. */
body.login:has(.wooshield-challenge-wrapper) #login {
    padding-top: 6vh;
    width: auto;
    max-width: 560px;
}

.wooshield-challenge-wrapper {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 16px 24px;
    box-sizing: border-box;
}

.wooshield-challenge-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 24px -8px rgba(15, 23, 42, 0.12),
        0 28px 56px -16px rgba(79, 70, 229, 0.18);
    overflow: hidden;
    animation: wooshield-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wooshield-card-in {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wooshield-challenge-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

.wooshield-challenge-header {
    text-align: center;
    padding: 44px 56px 22px;
}

.wooshield-challenge-logo {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
    padding: 14px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(99, 102, 241, 0.12),
        0 6px 14px -6px rgba(99, 102, 241, 0.35);
    display: block;
}

.wooshield-challenge-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.wooshield-challenge-header p {
    margin: 0;
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.55;
}

.wooshield-challenge-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 56px 18px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fef2f2 0%, #fff1f2 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.wooshield-challenge-error::before {
    content: '!';
    flex: 0 0 18px;
    width: 18px; height: 18px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.wooshield-method-tabs {
    display: flex;
    gap: 4px;
    margin: 0 56px 24px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.wooshield-method-tab {
    flex: 1;
    text-align: center;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.wooshield-method-tab:hover {
    color: #0f172a;
}

.wooshield-method-tab.active {
    background: #ffffff;
    color: #4f46e5;
    font-weight: 600;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 2px 6px rgba(15, 23, 42, 0.04);
}

.wooshield-challenge-form {
    padding: 0 56px 30px;
}

.wooshield-challenge-form .wooshield-form-row {
    margin-bottom: 16px;
}

.wooshield-challenge-form .wooshield-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    letter-spacing: -0.005em;
}

.wooshield-challenge-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 12px;
    text-indent: 12px; /* visually center the letter-spacing offset */
    text-align: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.wooshield-challenge-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
    letter-spacing: 4px;
}

.wooshield-challenge-input:hover {
    border-color: #cbd5e1;
}

.wooshield-challenge-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.wooshield-challenge-form .wooshield-recovery-code-input,
.wooshield-recovery-challenge .wooshield-recovery-code-input {
    letter-spacing: 2px;
    text-indent: 2px;
    font-size: 16px;
}

.wooshield-email-otp-hint {
    margin: 0 0 16px;
    padding: 11px 14px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.5;
}

/* Remember-this-device row -------------------------------------------- */
.wooshield-challenge-form .wooshield-remember-row {
    margin-bottom: 18px;
}

.wooshield-challenge-form .wooshield-remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    letter-spacing: 0;
}

.wooshield-challenge-form .wooshield-remember-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wooshield-challenge-form .wooshield-remember-label input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #6366f1;
    cursor: pointer;
}

.wooshield-remember-text {
    flex: 1;
    line-height: 1.4;
}

/* Primary verify button ----------------------------------------------- */
.wooshield-challenge-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.005em;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 8px 18px -6px rgba(99, 102, 241, 0.55);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wooshield-challenge-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 12px 22px -6px rgba(99, 102, 241, 0.65);
}

.wooshield-challenge-btn:active {
    transform: translateY(0);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        0 4px 10px -4px rgba(99, 102, 241, 0.55);
}

.wooshield-challenge-btn:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.35);
    outline-offset: 2px;
}

/* Resend secondary button --------------------------------------------- */
.wooshield-resend-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 4px 0 14px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.wooshield-resend-btn:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
    color: #4338ca;
    transform: none;
}

.wooshield-resend-btn:active { transform: translateY(0); }

/* Footer -------------------------------------------------------------- */
.wooshield-challenge-footer {
    text-align: center;
    padding: 20px 56px 30px;
    margin-top: 4px;
    border-top: 1px solid #f1f5f9;
}

.wooshield-challenge-footer a {
    display: inline-block;
    padding: 6px 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
}

.wooshield-challenge-footer a:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* Medium screens ------------------------------------------------------ */
@media (max-width: 620px) {
    body.login:has(.wooshield-challenge-wrapper) #login { max-width: 100%; }
    .wooshield-challenge-header,
    .wooshield-challenge-form,
    .wooshield-challenge-footer { padding-left: 36px; padding-right: 36px; }
    .wooshield-method-tabs,
    .wooshield-challenge-error { margin-left: 36px; margin-right: 36px; }
}

/* Small screens ------------------------------------------------------- */
@media (max-width: 480px) {
    .wooshield-challenge-wrapper { padding: 4px 10px 16px; }
    .wooshield-challenge-header,
    .wooshield-challenge-form,
    .wooshield-challenge-footer { padding-left: 24px; padding-right: 24px; }
    .wooshield-method-tabs,
    .wooshield-challenge-error { margin-left: 24px; margin-right: 24px; }
    .wooshield-challenge-header { padding-top: 32px; }
    .wooshield-challenge-header h2 { font-size: 20px; }
    .wooshield-challenge-input { font-size: 20px; letter-spacing: 8px; text-indent: 8px; padding: 14px 16px; }
}

/* Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .wooshield-challenge-card { animation: none; }
    .wooshield-challenge-btn:hover { transform: none; }
}

/* =============================================================================
   9. Trusted Devices
   ============================================================================= */

.wooshield-devices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wooshield-device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #f6f7f7;
}

.wooshield-device-expired {
    opacity: 0.6;
}

.wooshield-device-icon {
    font-size: 24px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.wooshield-device-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wooshield-device-name {
    font-weight: 600;
    color: #1d2327;
}

.wooshield-device-meta {
    font-size: 12px;
    color: #646970;
}

.wooshield-device-actions {
    flex-shrink: 0;
}

.wooshield-badge-expired {
    display: inline-block;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    background: #dcdcde;
    color: #646970;
    border-radius: 3px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 4px;
}

.wooshield-no-devices {
    color: #646970;
    text-align: center;
    padding: 20px;
}

.wooshield-inline-form {
    margin: 0;
    display: inline;
}

/* =============================================================================
   10. My Account Security
   ============================================================================= */

.wooshield-myaccount {
    max-width: 100%;
}

.wooshield-myaccount-tabs {
    display: flex;
    border-bottom: 2px solid #dcdcde;
    margin-bottom: 24px;
    gap: 0;
}

.wooshield-myaccount-tab {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #646970;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}

.wooshield-myaccount-tab.active,
.wooshield-myaccount-tab:hover {
    color: #1d2327;
    border-bottom-color: #2271b1;
}

.wooshield-myaccount-section {
    padding: 0;
}

.wooshield-status-card {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
}

.wooshield-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f1;
}

.wooshield-status-row:last-child {
    border-bottom: none;
}

.wooshield-status-label {
    font-weight: 600;
    color: #1d2327;
}

.wooshield-required-note {
    color: #dc3232;
}

.wooshield-myaccount-form {
    margin-top: 16px;
}

.wooshield-myaccount-form p {
    margin: 0 0 12px;
}

.wooshield-myaccount-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d2327;
}

.wooshield-setup-key-compact {
    margin-top: 12px;
}

.wooshield-2fa-control-card {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.wooshield-2fa-control-status {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    background: #f6fff8;
    border-bottom: 1px solid #d9f0df;
}

.wooshield-2fa-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #005a12;
    background: #edfaef;
    border: 1px solid #b8e6c3;
    border-radius: 50%;
    line-height: 1;
}

.wooshield-2fa-control-icon::before {
    content: '';
    width: 8px;
    height: 14px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wooshield-2fa-control-status h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #1d2327;
}

.wooshield-2fa-control-status p,
.wooshield-2fa-disable-panel p {
    margin: 0;
    color: #646970;
    line-height: 1.5;
}

.wooshield-2fa-disable-panel {
    padding: 20px;
}

.wooshield-2fa-disable-panel h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #1d2327;
}

.wooshield-2fa-disable-form {
    margin-top: 16px;
}

.wooshield-2fa-disable-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.wooshield-2fa-disable-actions .wooshield-code-input {
    width: 180px;
    max-width: 100%;
}

/* =============================================================================
   11. Security Logs
   ============================================================================= */

.wooshield-logs-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wooshield-log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f1;
}

.wooshield-log-item:last-child {
    border-bottom: none;
}

.wooshield-log-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.wooshield-log-icon-success {
    background: #edfaef;
    color: #00a32a;
}

.wooshield-log-icon-failed {
    background: #fcf0f1;
    color: #dc3232;
}

.wooshield-log-content {
    flex: 1;
}

.wooshield-log-event {
    display: block;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.wooshield-log-meta {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-top: 2px;
}

.wooshield-log-message {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

.wooshield-no-data {
    text-align: center;
    color: #646970;
    padding: 20px;
}

.wooshield-logs-pagination {
    margin-top: 16px;
    text-align: center;
}

.wooshield-logs-page-current,
.wooshield-logs-page-link {
    margin: 0 4px;
}

.wooshield-logs-page-current {
    font-weight: 600;
}

/* =============================================================================
   12. Animations
   ============================================================================= */

@keyframes wooshield-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* =============================================================================
   13. Responsive
   ============================================================================= */

@media (max-width: 600px) {
    .wooshield-card {
        padding: 20px;
    }

    .wooshield-code-input {
        max-width: 100%;
        font-size: 18px;
    }

    .wooshield-recovery-manager {
        align-items: stretch;
        flex-direction: column;
    }

    .wooshield-recovery-manager-action .wooshield-btn {
        width: 100%;
        text-align: center;
    }

    .wooshield-2fa-control-status,
    .wooshield-2fa-disable-panel {
        padding: 16px;
    }

    .wooshield-2fa-disable-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wooshield-2fa-disable-actions .wooshield-code-input,
    .wooshield-2fa-disable-actions .wooshield-btn {
        width: 100%;
    }
}
