/* Stili per le icone di stato delle credenziali */

.credential-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.credential-status-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.credential-status-icon:hover,
.credential-status-icon-large:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Stili condivisi per entrambe le versioni delle icone di stato */

/* Created - Blu */
.credential-status-icon.status-created,
.credential-status-icon-large.status-created {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.credential-status-icon.status-created:hover,
.credential-status-icon-large.status-created:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

/* Requested - Ambra/Oro */
.credential-status-icon.status-requested,
.credential-status-icon-large.status-requested {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    color: #d97706;
}

.credential-status-icon.status-requested:hover,
.credential-status-icon-large.status-requested:hover {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

/* Success - Verde */
.credential-status-icon.status-success,
.credential-status-icon-large.status-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.credential-status-icon.status-success:hover,
.credential-status-icon-large.status-success:hover {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
}

/* Failed - Rosso */
.credential-status-icon.status-failed,
.credential-status-icon-large.status-failed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.credential-status-icon.status-failed:hover,
.credential-status-icon-large.status-failed:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

/* Suspended - Arancione */
.credential-status-icon.status-suspended,
.credential-status-icon-large.status-suspended {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #ea580c;
}

.credential-status-icon.status-suspended:hover,
.credential-status-icon-large.status-suspended:hover {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

/* Revoked - Rosso scuro */
.credential-status-icon.status-revoked,
.credential-status-icon-large.status-revoked {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
}

.credential-status-icon.status-revoked:hover,
.credential-status-icon-large.status-revoked:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

/* Office Suspended - Rosso intenso */
.credential-status-icon.status-office-suspended,
.credential-status-icon-large.status-office-suspended {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
}

.credential-status-icon.status-office-suspended:hover,
.credential-status-icon-large.status-office-suspended:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

/* Stili per le icone active/inactive */
.credential-active-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Versione large per le icone active/inactive */
.credential-active-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

/* Stili condivisi per entrambe le versioni delle icone active/inactive */
.credential-active-icon.active-true,
.credential-active-icon-large.active-true {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.credential-active-icon.active-false,
.credential-active-icon-large.active-false {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.credential-active-icon:hover,
.credential-active-icon-large:hover {
    transform: scale(1.10);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* Stili per le icone delle operazioni */
.operations-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
    margin: 0 2px;
}

.operations-icon:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Operazioni specifiche con colori distintivi */
.operations-icon.op-repeat {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    color: #7c3aed;
}

.operations-icon.op-repeat:hover {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
    color: #5b21b6;
}

.operations-icon.op-calendar {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    color: #d97706;
}

.operations-icon.op-calendar:hover {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #b45309;
}

.operations-icon.op-play {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.operations-icon.op-play:hover {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    color: #15803d;
}

.operations-icon.op-pause {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #ea580c;
}

.operations-icon.op-pause:hover {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
    color: #c2410c;
}

.operations-icon.op-close {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.operations-icon.op-close:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #b91c1c;
}

.operations-icon.op-restart {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

.operations-icon.op-restart:hover {
    background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
    color: #312e81;
}

/* Stato disabilitato per le operazioni */
.operations-icon.disabled {
    background: #f1f5f9 !important;
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.operations-icon.disabled:hover {
    background: #f1f5f9 !important;
    color: #cbd5e1 !important;
    transform: none !important;
    box-shadow: none !important;
}
