/* static/css/carica_moduli.css */

.ruolo-badge {
    display: inline-block;
    padding: 3px 10px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 32px;
    text-align: center;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.ruolo-badge.badge-multi {
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.ruolo-badge.badge-multi span {
    position: relative;
    z-index: 1;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.ruolo-badge.badge-multi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 0;
}

.modulo-row {
    border-bottom: 1px solid #dee2e6;
    padding: 12px 0;
}
.modulo-row:last-child {
    border-bottom: none;
}
.modulo-nome {
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    min-width: 50px;
}
.posizione-wrapper {
    display: inline-block;
    margin: 2px;
}
.btn-esporta {
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modulo-row .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
    }
    .modulo-nome {
        font-size: 16px;
        min-width: auto;
    }
    .ruolo-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        min-width: 24px !important;
    }
    .card-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch !important;
    }
    .card-header .d-flex {
        justify-content: center;
    }
    .btn-esporta {
        width: 100%;
        text-align: center;
    }
    .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .modulo-row {
        padding: 8px 0;
    }
    .modulo-nome {
        font-size: 14px;
    }
    .ruolo-badge {
        font-size: 9px !important;
        padding: 1px 5px !important;
        min-width: 20px !important;
    }
    .posizione-wrapper {
        margin: 1px;
    }
    .card-body {
        padding: 8px;
    }
    .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .legenda .row .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}