/* toggles-and-badges.css — iOS toggle switches, contact badges, and CI modal button overrides */

/* Contact Badge Styles */
.contact-badge {
    background: #6c757d;
    color: white;
    padding: 8px 12px;
    border-radius: 2px;
    min-width: 180px;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.contact-badge.active {
    background: #0d6efd;
}

.contact-badge.inactive {
    background: #6c757d;
    opacity: 0.75;
}

.contact-badge .role {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

.contact-badge .contact-info {
    font-size: 0.8rem;
    margin-top: 4px;
    opacity: 0.9;
}

.contact-badge .inactive-label {
    font-size: 0.75rem;
    color: #ff6b6b;
    margin-top: 4px;
    font-weight: bold;
}

/* =============================================
   iOS Toggle Switch (.mage-toggle)
   ============================================= */
.mage-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
    vertical-align: middle;
}
.mage-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.mage-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.25s ease;
}
.mage-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.mage-toggle input:checked + .mage-toggle-slider {
    background-color: #34c759;
}
.mage-toggle input:checked + .mage-toggle-slider::before {
    transform: translateX(20px);
}

/* Small toggle variant (36×20px) */
.mage-toggle.mage-toggle-sm {
    width: 36px;
    height: 20px;
}
.mage-toggle-sm .mage-toggle-slider {
    border-radius: 20px;
}
.mage-toggle-sm .mage-toggle-slider::before {
    height: 14px;
    width: 14px;
}
.mage-toggle-sm input:checked + .mage-toggle-slider::before {
    transform: translateX(16px);
}
.mage-toggle-sm input:disabled + .mage-toggle-slider {
    opacity: 0.5;
    cursor: default;
}

/* =============================================
   Edit/Delete Action Icons - keine Unterstreichung
   ============================================= */
a:has(> i.lni) { text-decoration: none !important; }
a.ac-btn-action { text-decoration: none !important; }

/* =============================================
   CI: Alle Modal Speichern-Buttons orange
   ============================================= */
.modal .btn-primary, .modal-footer .btn-primary {
    background: var(--o) !important;
    border-color: var(--o) !important;
    border-radius: 2px;
}
.modal .btn-primary:hover, .modal-footer .btn-primary:hover {
    background: var(--o-h) !important;
    border-color: var(--o-h) !important;
}
.modal .btn-secondary, .modal-footer .btn-secondary {
    background: #666 !important;
    border-color: #666 !important;
    border-radius: 2px;
}
.modal .btn-secondary:hover, .modal-footer .btn-secondary:hover {
    background: #555 !important;
    border-color: #555 !important;
}
