/* Base style for all ticket badges */
.badge-ticket {
    display: inline-flex;
    align-items:center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
}

/* Priority Badges */
.badge-priority-critical {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-priority-high {
    background: #FFF7ED;
    color: #C2410C;
}

.badge-priority-medium {
    background: #FEFCE8;
    color: #713F12;
}

.badge-priority-low {
    background: #F0FDF4;
    color: #14532D;
}

.badge-priority-minimal {
    background: #F1F5F9;
    color: #475569;
}

/* Status Badges */
.badge-status-open {
    background: #EFF6FF;
    color: #1E40AF;
}

.badge-status-in-progress {
    background: #F5F3FF;
    color: #4C1D95;
}

.badge-status-waiting {
    background: #FFF7ED;
    color: #7C2D12;
}

.badge-status-in-review {
    background: #FEFCE8;
    color: #713F12;
}

.badge-status-resolved {
    background: #ECFDF5;
    color: #14532D;
}

.badge-status-closed {
    background: #F0FDF4;
    color: #14532D;
}

.badge-status-cancelled {
    background: #F8FAFC;
    color: #475569;
}

.badge-status-blocked {
    background: #FFF1F2;
    color: #881337;
}

/* ── Status Cards (Dashboard) ───────────────────────────── */
.status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid transparent;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 76px;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.status-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.status-card__body {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.status-card__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    white-space: nowrap;
}

.status-card__count {
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    margin-top: 2px;
}

/* Variantes de cor por status */
.status-card--open        { border-color: #3B82F6; }
.status-card--open        .status-card__icon { background: #EFF6FF; color: #3B82F6; }

.status-card--gray        { border-color: #6B7280; }
.status-card--gray        .status-card__icon { background: #F3F4F6; color: #6B7280; }

.status-card--in_progress { border-color: #8B5CF6; }
.status-card--in_progress .status-card__icon { background: #F5F3FF; color: #8B5CF6; }

.status-card--waiting     { border-color: #F97316; }
.status-card--waiting     .status-card__icon { background: #FFF7ED; color: #F97316; }

.status-card--in_review   { border-color: #EAB308; }
.status-card--in_review   .status-card__icon { background: #FEFCE8; color: #CA8A04; }

.status-card--resolved    { border-color: #10B981; }
.status-card--resolved    .status-card__icon { background: #ECFDF5; color: #10B981; }

.status-card--closed      { border-color: #16A34A; }
.status-card--closed      .status-card__icon { background: #F0FDF4; color: #16A34A; }

.status-card--cancelled   { border-color: #94A3B8; }
.status-card--cancelled   .status-card__icon { background: #F8FAFC; color: #64748B; }

.status-card--blocked     { border-color: #F43F5E; }
.status-card--blocked     .status-card__icon { background: #FFF1F2; color: #F43F5E; }

/* ── Popups Customizados (Sucesso/Privacidade/Delegação) ── */
.privacy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.privacy-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.privacy-popup-content {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.privacy-popup-overlay.active .privacy-popup-content {
    transform: translateY(0);
}

.privacy-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
    border-width: 4px;
    border-style: solid;
}

.circle-success {
    border-color: #198754;
    color: #198754;
}

.title-success {
    color: #198754;
    font-weight: 800;
    font-size: 1.8rem;
}

.btn-success-popup {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.circle-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.title-danger {
    color: #dc3545;
    font-weight: 800;
    font-size: 1.8rem;
}

.btn-danger-popup {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.circle-warning {
    border-color: #ffc107;
    color: #ffc107;
}

.title-warning {
    color: #856404;
    font-weight: 800;
    font-size: 1.8rem;
}

.btn-warning-popup {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.circle-info {
    border-color: #0d6efd;
    color: #0d6efd;
}

.title-info {
    color: #0d6efd;
    font-weight: 800;
    font-size: 1.8rem;
}

.btn-info-popup {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-popup-ok {
    padding: 0.6rem 2rem;
    border-radius: 0.8rem;
    font-weight: 700;
    font-size: 1rem;
    min-width: 100px;
    border: none;
    transition: all 0.2s;
}

.btn-popup-ok:hover {
    opacity: 0.9;
    transform: scale(1.05);
}
/* ── Estilos de Toggle Switch (On/Off) ────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .toggle-slider {
    background-color: #0D6EFD;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Estilo para itens desativados */
.inactive-item {
    opacity: 0.5;
    filter: grayscale(0.8) blur(0.5px);
    transition: all 0.3s ease;
}

.inactive-item:hover {
    opacity: 0.8;
    filter: grayscale(0.4) blur(0px);
}

.inactive-badge {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
}
