/* User Roles Modal Styles */

.user-roles-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.user-roles-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-roles-modal-header {
    padding: 20px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-roles-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.user-roles-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.user-roles-close:hover,
.user-roles-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.user-roles-modal-body {
    padding: 20px;
}

.user-roles-list {
    line-height: 1.6;
    font-size: 14px;
    padding: 10px 0;
}

.user-roles-list p {
    margin: 10px 0;
    color: #333;
}

.role-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.role-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.role-item:last-child {
    margin-bottom: 0;
}

.role-piece {
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
}

.composer-name {
    font-weight: 600;
    color: #1a365d;
}

.piece-divider {
    margin: 0 4px;
    color: #718096;
}

.piece-title {
    font-style: italic;
    color: #2d3748;
}

.role-instrument {
    padding: 6px 12px;
    background: #e2e8f0;
    border-radius: 15px;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #2b6cb0;
    border: 1px solid #cbd5e0;
}

.instrument-name {
    text-transform: capitalize;
}

.no-roles {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 20px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px dashed #e2e8f0;
}

/* Style for clickable user names */
.user-roles-link {
    color: #2f7793;
    text-decoration: underline;
    cursor: pointer;
}

.user-roles-link:hover {
    color: #1a5a73;
    text-decoration: underline;
}

/* Loading state */
.user-roles-list .loading {
    text-align: center;
    color: #666;
    font-style: italic;
}