/* Estilos para el Módulo y Modal de Preferencias (API Externa) */
.preferences-modal-card {
    max-width: 800px;
    width: 95%;
}

.preferences-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.preferences-token-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #0f172a;
    background-color: #ffffff;
}

.preferences-badge-configured {
    background-color: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.preferences-badge-unconfigured {
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.preferences-endpoints-list {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.preferences-endpoint-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.preferences-endpoint-item:last-child {
    border-bottom: none;
}

.badge-method-get {
    background-color: #0284c7;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-method-post {
    background-color: #16a34a;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Pestañas de Preferencias */
.preferences-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.preferences-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
}

.preferences-tab-btn:hover {
    color: #1e293b;
    background: #f8fafc;
}

.preferences-tab-btn.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    background: #f8fafc;
}

.preferences-tab-content {
    display: block;
}

.preferences-tab-content.hidden {
    display: none !important;
}

/* Switch / Toggle */
.pref-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.pref-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin: 0;
}

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

.pref-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.pref-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.pref-switch input:checked + .pref-slider {
    background-color: #10b981;
}

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