/* Section visibility */
.guard-dog-2fa-recovery-codes {
    display: none;
}

.guard-dog-2fa-setup-section {
    display: none;
}

.guard-dog-email-2fa-setup-section {
    display: none;
}

.guard-dog-2fa-shortcode-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 600px;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.guard-dog-2fa-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.guard-dog-2fa-icon {
    font-size: 1.2em;
}

.guard-dog-2fa-status {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.guard-dog-2fa-status.guard-dog-2fa-enabled {
    background: #d1f2eb;
    border: 1px solid #00b894;
    color: #00b894;
}

.guard-dog-2fa-status.guard-dog-2fa-disabled {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    color: #e17055;
}

.guard-dog-2fa-status strong {
    display: block;
    margin-bottom: 5px;
}

.guard-dog-2fa-status p {
    margin: 0;
    color: #2d3436;
}

.guard-dog-2fa-recovery-section,
.guard-dog-2fa-disable-section,
.guard-dog-2fa-enable-section,
.guard-dog-2fa-setup-section,
.guard-dog-passkeys-management__panel {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.guard-dog-2fa-recovery-section h4,
.guard-dog-2fa-disable-section h4,
.guard-dog-2fa-enable-section h4,
.guard-dog-2fa-setup-section h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.guard-dog-2fa-passkeys-section {
    margin-bottom: 25px;
}

.guard-dog-passkeys-management__panel h5 {
    margin: 0 0 10px 0;
    font-size: 1.05em;
    font-weight: 600;
}

.guard-dog-passkeys-management__description,
.guard-dog-passkeys-management__count,
.guard-dog-passkeys-management__empty {
    margin: 0 0 12px 0;
    color: #636e72;
}

.guard-dog-passkeys-management__browser-support {
    margin: 0 0 12px 0;
    color: #d63638;
}

.guard-dog-passkeys-management__table-wrap {
    overflow-x: auto;
}

.guard-dog-passkeys-management__table {
    width: 100%;
    border-collapse: collapse;
}

.guard-dog-passkeys-management__table th,
.guard-dog-passkeys-management__table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    vertical-align: middle;
}

.guard-dog-passkeys-management__table th {
    color: #2d3436;
    font-size: 13px;
    font-weight: 600;
}

.guard-dog-passkeys-management__table td {
    color: #2d3436;
    font-size: 14px;
}

.guard-dog-passkeys-management__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.guard-dog-passkeys-management__register-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guard-dog-passkeys-management__form-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.guard-dog-passkeys-management__name-input {
    flex: 1 1 260px;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.guard-dog-passkeys-management__register-status {
    margin: 0;
}

.guard-dog-passkeys-management__feedback {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
}

.guard-dog-passkeys-management__feedback[hidden] {
    display: none !important;
}

.guard-dog-passkeys-management__feedback.is-pending {
    background: #f6f7f7;
    border-color: #dcdcde;
    color: #3858e9;
}

.guard-dog-passkeys-management__feedback.is-success {
    background: #edfaef;
    border-color: #b8e6bf;
    color: #0f5f2f;
}

.guard-dog-passkeys-management__feedback.is-error {
    background: #fff1f0;
    border-color: #f2c2bc;
    color: #8a1f11;
}

.guard-dog-2fa-description {
    margin: 0 0 15px 0;
    color: #636e72;
}

.guard-dog-2fa-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.guard-dog-2fa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 40px;
}

.guard-dog-2fa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.guard-dog-2fa-btn-primary {
    background: #0984e3;
    color: white;
}

.guard-dog-2fa-btn-primary:hover:not(:disabled) {
    background: #0770c2;
}

.guard-dog-2fa-btn-secondary {
    background: #636e72;
    color: white;
}

.guard-dog-2fa-btn-secondary:hover:not(:disabled) {
    background: #2d3436;
}

.guard-dog-2fa-btn-danger {
    background: #e17055;
    color: white;
}

.guard-dog-2fa-btn-danger:hover:not(:disabled) {
    background: #d63031;
}

.guard-dog-2fa-btn-icon {
    font-size: 16px;
}

.guard-dog-2fa-recovery-codes {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.guard-dog-2fa-recovery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.guard-dog-2fa-recovery-header h5 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.guard-dog-2fa-copy-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.guard-dog-2fa-copy-btn:hover {
    background: #5a6268;
}

.guard-dog-2fa-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.guard-dog-2fa-code-item {
    background: white;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guard-dog-2fa-code-item button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
}

.guard-dog-2fa-warning {
    margin: 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    color: #856404;
    font-size: 13px;
}

.guard-dog-2fa-instructions {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.guard-dog-2fa-instructions li {
    margin-bottom: 8px;
}

.guard-dog-2fa-setup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.guard-dog-2fa-qr-section {
    text-align: center;
}

.guard-dog-2fa-qr-code {
    margin-bottom: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guard-dog-2fa-secret {
    text-align: left;
}

.guard-dog-2fa-secret label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.guard-dog-2fa-secret-key {
    display: block;
    background: #f8f9fa;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    margin-bottom: 8px;
}

.guard-dog-2fa-verify-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.guard-dog-2fa-verify-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.guard-dog-2fa-verify-input input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 2px;
    width: 120px;
}

.guard-dog-2fa-feedback,
.guard-dog-2fa-messages {
    margin-top: 15px;
}

.guard-dog-2fa-notice {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.guard-dog-2fa-notice.guard-dog-2fa-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.guard-dog-2fa-notice.guard-dog-2fa-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.guard-dog-2fa-notice.guard-dog-2fa-info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.guard-dog-2fa-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .guard-dog-2fa-setup-content {
        grid-template-columns: 1fr;
    }

    .guard-dog-2fa-buttons {
        flex-direction: column;
    }

    .guard-dog-2fa-btn {
        justify-content: center;
    }

    .guard-dog-2fa-codes-grid {
        grid-template-columns: 1fr;
    }

    .guard-dog-2fa-recovery-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .guard-dog-passkeys-management__form-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Compact style variant */
.guard-dog-2fa-shortcode-container[data-style="compact"] .guard-dog-2fa-recovery-section,
.guard-dog-2fa-shortcode-container[data-style="compact"] .guard-dog-2fa-disable-section,
.guard-dog-2fa-shortcode-container[data-style="compact"] .guard-dog-2fa-enable-section,
.guard-dog-2fa-shortcode-container[data-style="compact"] .guard-dog-2fa-setup-section,
.guard-dog-2fa-shortcode-container[data-style="compact"] .guard-dog-passkeys-management__panel {
    padding: 15px;
    margin-bottom: 15px;
}

.guard-dog-2fa-shortcode-container[data-style="compact"] .guard-dog-2fa-btn {
    padding: 8px 12px;
    font-size: 13px;
}

/* Minimal style variant */
.guard-dog-2fa-shortcode-container[data-style="minimal"] .guard-dog-2fa-recovery-section,
.guard-dog-2fa-shortcode-container[data-style="minimal"] .guard-dog-2fa-disable-section,
.guard-dog-2fa-shortcode-container[data-style="minimal"] .guard-dog-2fa-enable-section,
.guard-dog-2fa-shortcode-container[data-style="minimal"] .guard-dog-2fa-setup-section,
.guard-dog-2fa-shortcode-container[data-style="minimal"] .guard-dog-passkeys-management__panel {
    border: none;
    background: transparent;
}

/* QR Code image styling */
.guard-dog-2fa-qr-image {
    max-width: 200px;
    height: auto;
}

/* Refresh button styling */
.guard-dog-2fa-refresh-button {
    margin-top: 10px;
} 
