/* Modern Permissions Boxes Styling */

.permissions-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.permissions-title {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.permission-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    transition: var(--transition);
}

.permission-item.enabled {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.permission-item.disabled {
    opacity: 0.5;
    background: #f1f5f9;
}

.permission-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}

.permission-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    accent-color: var(--primary-color);
}

.permission-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.permission-item.enabled .permission-name {
    color: #166534;
}

/* Color Variations */
.permissions-box.view-permissions { border-top: 4px solid var(--info-color); }
.permissions-box.edit-permissions { border-top: 4px solid var(--warning-color); }
.permissions-box.export-permissions { border-top: 4px solid var(--success-color); }
.permissions-box.admin-permissions { border-top: 4px solid var(--danger-color); }
